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

Side by Side Diff: src/trusted/service_runtime/arch/arm/nacl_switch.S

Issue 10806080: ARM: Rename the "new_eip" field in NaClThreadContext to "new_prog_ctr" (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Rebase + copyright Created 8 years, 4 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
« no previous file with comments | « no previous file | src/trusted/service_runtime/arch/arm/nacl_switch_to_app_arm.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 .text 9 .text
10 10
(...skipping 16 matching lines...) Expand all
27 * registers are overwritten by the code that follows after. 27 * registers are overwritten by the code that follows after.
28 */ 28 */
29 29
30 mov r2, #0 30 mov r2, #0
31 mov r3, #0 31 mov r3, #0
32 mov lr, #0 32 mov lr, #0
33 msr cpsr_fs, #0 33 msr cpsr_fs, #0
34 34
35 ldmia r0!, NACL_CALLEE_SAVE_LIST 35 ldmia r0!, NACL_CALLEE_SAVE_LIST
36 add r0, #4 /* skip prog_ctr in struct NaClThreadContext */ 36 add r0, #4 /* skip prog_ctr in struct NaClThreadContext */
37 /* Read sysret and new_eip from struct NaClThreadContext */ 37 /* Read sysret and new_prog_ctr from struct NaClThreadContext */
38 ldmia r0, {r0, r1} 38 ldmia r0, {r0, r1}
39 /* Pop 4 arguments saved on the stack by the trampoline code */ 39 /* Pop 4 arguments saved on the stack by the trampoline code */
40 add sp, #16 40 add sp, #16
41 /* Transfer control to untrusted code */ 41 /* Transfer control to untrusted code */
42 bx r1 42 bx r1
OLDNEW
« no previous file with comments | « no previous file | src/trusted/service_runtime/arch/arm/nacl_switch_to_app_arm.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698