| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include "native_client/src/trusted/service_runtime/nacl_config.h" | 7 #include "native_client/src/trusted/service_runtime/nacl_config.h" |
| 8 | 8 |
| 9 | 9 |
| 10 /* | 10 /* |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 bx lr | 31 bx lr |
| 32 | 32 |
| 33 | 33 |
| 34 .text | 34 .text |
| 35 .align NACL_BLOCK_SHIFT | 35 .align NACL_BLOCK_SHIFT |
| 36 .globl longjmp | 36 .globl longjmp |
| 37 | 37 |
| 38 /* void longjmp(jmp_buf env, int val) */ | 38 /* void longjmp(jmp_buf env, int val) */ |
| 39 longjmp: | 39 longjmp: |
| 40 /* Bundle -------------------- */ | 40 /* Bundle -------------------- */ |
| 41 bic r0, r0, #NACL_DATA_FLOW_MASK |
| 41 ldmia r0!, {r4, r5, r6, r7, r8, r10, r11, r12, lr} | 42 ldmia r0!, {r4, r5, r6, r7, r8, r10, r11, r12, lr} |
| 42 mov sp, r12 | 43 mov sp, r12 |
| 43 bic sp, sp, #NACL_DATA_FLOW_MASK | 44 bic sp, sp, #NACL_DATA_FLOW_MASK |
| 44 /* Return the result argument if nonzero or 1 otherwise */ | 45 /* Return the result argument if nonzero or 1 otherwise */ |
| 45 /* Note: move updates condition codes */ | 46 /* Note: move updates condition codes */ |
| 46 movs r0, r1 | 47 movs r0, r1 |
| 47 /* Bundle -------------------- */ | 48 /* Bundle -------------------- */ |
| 48 moveq r0, #1 | 49 moveq r0, #1 |
| 49 bic lr, lr, #NACL_CONTROL_FLOW_MASK | 50 bic lr, lr, #NACL_CONTROL_FLOW_MASK |
| 50 bx lr | 51 bx lr |
| OLD | NEW |