DescriptionMIPS: Fix NaClSwitch() to set $t9 to the address of the entry point
The MIPS calling convention is that a function is called with $t9 set
to the address of the function being called. This is used rather like
%ebx on x86-32 for locating global variables.
This change is needed to make hello_world.nexe work, otherwise the
nexe crashes the first time it dereferences a pointer derived from
$t9.
This also fixes an information leak: we no longer leak the value of
$t9 from trusted code.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=2275
TEST=hello_world (with other changes applied locally)
Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=10278
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|