Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: src/untrusted/stubs/setjmp_arm.S

Issue 8275008: Make validator require read sandboxing on ARM. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« src/trusted/validator_arm/validator_tests.cc ('K') | « src/trusted/validator_arm/validator_tests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698