Chromium Code Reviews| Index: tests/exception_test/exception_crash_test.c |
| diff --git a/tests/exception_test/exception_crash_test.c b/tests/exception_test/exception_crash_test.c |
| index 57f31a4bebfeff9cb73542204800953fedc0cde2..a7e2f88c6c64c78fa60f48a65bffba597737942a 100644 |
| --- a/tests/exception_test/exception_crash_test.c |
| +++ b/tests/exception_test/exception_crash_test.c |
| @@ -75,7 +75,23 @@ asm(".pushsection .text, \"ax\", @progbits\n" |
| void error_exit(void) { |
| _exit(1); |
| } |
| +#elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_mips |
|
Mark Seaborn
2013/03/11 15:54:38
Add empty line before for consistent spacing
petarj
2013/03/14 01:13:03
Done.
|
| +char recovery_stack[0x1000] __attribute__((aligned(8))); |
| + |
| +void bad_stack_exception_handler(struct NaClExceptionContext *context); |
| +__asm__(".pushsection .text, \"ax\", @progbits\n" |
| + "bad_stack_exception_handler:\n" |
| + "lui $t9, %hi(recovery_stack)\n" |
| + "addiu $sp, $t9, %lo(recovery_stack)\n" |
| + "and $sp, $sp, $t7\n" |
| + "j error_exit\n" |
| + "nop\n" |
| + ".popsection\n"); |
| + |
| +void error_exit() { |
| + _exit(1); |
|
Mark Seaborn
2013/03/11 15:54:38
Add empty line after for consistent spacing
petarj
2013/03/14 01:13:03
Done.
|
| +} |
| #else |
| /* TODO(mseaborn): Implement a stack switcher, like the one above, for ARM. */ |