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

Side by Side Diff: tests/syscall_return_sandboxing/sandboxed_arm.S

Issue 11194045: Change BKPT and UDF encodings on ARM. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fixes proposed by mseaborn. I'll submit try jobs with them, and factor things out with #define tomo… Created 8 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 2010 The Native Client Authors. All rights reserved. 2 * Copyright 2010 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * assume 32-byte trampoline slots, 16-byte bundles. 8 * assume 32-byte trampoline slots, 16-byte bundles.
9 */ 9 */
10 #define GETTIMEOFDAY_ADDR 0x10500 10 #define GETTIMEOFDAY_ADDR 0x10500
(...skipping 14 matching lines...) Expand all
25 ldr r2, addrOfGetTimeOfDaySyscallAddr 25 ldr r2, addrOfGetTimeOfDaySyscallAddr
26 bic r2, r2, #0xf000000f 26 bic r2, r2, #0xf000000f
27 bx r2 27 bx r2
28 28
29 eor r0, r0, #1 29 eor r0, r0, #1
30 bad: pop {lr} 30 bad: pop {lr}
31 bic lr, lr, #0xf000000f 31 bic lr, lr, #0xf000000f
32 bx lr 32 bx lr
33 33
34 34
35 bkpt 0x7777 35 bkpt 0x5be0
36 /* 36 /*
37 * Put a disallowed instruction here to ensure that the bkpt 37 * Put a disallowed instruction here to ensure that the bkpt
38 * data bundle marker works. If the marker does not work, then 38 * data bundle marker works. If the marker does not work, then
39 * whether this code passes the validator is a matter of chance. 39 * whether this code passes the validator is a matter of chance.
40 */ 40 */
41 mov pc, r0 41 mov pc, r0
42 addrOfGetTimeOfDaySyscallAddr: 42 addrOfGetTimeOfDaySyscallAddr:
43 .word GETTIMEOFDAY_ADDR 43 .word GETTIMEOFDAY_ADDR
44 addrOfTimeBuf: 44 addrOfTimeBuf:
45 .word timebuf 45 .word timebuf
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698