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

Side by Side Diff: tests/dynamic_code_loading/templates_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 (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 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 #include "native_client/src/trusted/service_runtime/nacl_config.h" 6 #include "native_client/src/trusted/service_runtime/nacl_config.h"
7 #include "templates.h" 7 #include "templates.h"
8 8
9 #define SANDBOX_MASK NACL_CONTROL_FLOW_MASK 9 #define SANDBOX_MASK NACL_CONTROL_FLOW_MASK
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 mov r1, #MARKER_OLD & 0xff 49 mov r1, #MARKER_OLD & 0xff
50 orr r1, #MARKER_OLD & 0xff00 50 orr r1, #MARKER_OLD & 0xff00
51 bic lr, lr, #SANDBOX_MASK 51 bic lr, lr, #SANDBOX_MASK
52 bx lr 52 bx lr
53 template_func_nonreplacement_end: 53 template_func_nonreplacement_end:
54 54
55 .global hlts 55 .global hlts
56 .global hlts_end 56 .global hlts_end
57 .p2align 4 57 .p2align 4
58 hlts: 58 hlts:
59 bkpt 0x7777 59 udf 0xedef
60 bkpt 0x7777 60 udf 0xedef
61 bkpt 0x7777 61 udf 0xedef
62 bkpt 0x7777 62 udf 0xedef
63 hlts_end: 63 hlts_end:
64 64
65 65
66 .global branch_forwards 66 .global branch_forwards
67 .global branch_forwards_end 67 .global branch_forwards_end
68 .global branch_backwards 68 .global branch_backwards
69 .global branch_backwards_end 69 .global branch_backwards_end
70 .p2align 4 70 .p2align 4
71 branch_forwards: 71 branch_forwards:
72 b branch_backwards 72 b branch_backwards
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 b external_jump_replace_return 187 b external_jump_replace_return
188 bl template_func_external_jump_target_replace 188 bl template_func_external_jump_target_replace
189 mov r0, #MARKER_STABLE & 0xff 189 mov r0, #MARKER_STABLE & 0xff
190 orr r0, #MARKER_STABLE & 0xff00 190 orr r0, #MARKER_STABLE & 0xff00
191 nop 191 nop
192 nop 192 nop
193 external_jump_replace_return: 193 external_jump_replace_return:
194 bic lr, lr, #SANDBOX_MASK 194 bic lr, lr, #SANDBOX_MASK
195 bx lr 195 bx lr
196 template_func_external_jump_target_replace_end: 196 template_func_external_jump_target_replace_end:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698