diff options
author | Amaan Cheval <amaan.cheval@gmail.com> | 2018-08-13 15:51:47 +0530 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2018-08-13 10:48:20 -0500 |
commit | ab971bf5e37a057432c267175ddf12d6799a2b35 (patch) | |
tree | ebc850151dee80f7bbd28ecac40987f34516cfaa /cpukit/score/cpu/x86_64/x86_64-context-switch.S | |
parent | libtests/POSIX: Fix warnings and style. (diff) | |
download | rtems-ab971bf5e37a057432c267175ddf12d6799a2b35.tar.bz2 |
bsps/x86_64: Reorganize header files and compile-options
Updates #2898.
Diffstat (limited to 'cpukit/score/cpu/x86_64/x86_64-context-switch.S')
-rw-r--r-- | cpukit/score/cpu/x86_64/x86_64-context-switch.S | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/score/cpu/x86_64/x86_64-context-switch.S b/cpukit/score/cpu/x86_64/x86_64-context-switch.S index cb451e9acb..5ff78d23e0 100644 --- a/cpukit/score/cpu/x86_64/x86_64-context-switch.S +++ b/cpukit/score/cpu/x86_64/x86_64-context-switch.S @@ -46,8 +46,10 @@ BEGIN_CODE .p2align 1 PUBLIC(_CPU_Context_switch) -.set RUNCONTEXT_ARG, rdi /* save context argument */ -.set HEIRCONTEXT_ARG, rsi /* restore context argument */ +/* save context argument */ +.set RUNCONTEXT_ARG, REG_ARG0 +/* restore context argument */ +.set HEIRCONTEXT_ARG, REG_ARG1 SYM(_CPU_Context_switch): movq RUNCONTEXT_ARG, rax /* rax = running threads context */ @@ -88,7 +90,7 @@ restore: PUBLIC(_CPU_Context_restore) -.set NEWCONTEXT_ARG, rdi /* context to restore argument */ +.set NEWCONTEXT_ARG, REG_ARG0 /* context to restore argument */ SYM(_CPU_Context_restore): movq NEWCONTEXT_ARG, rax /* rax = running threads context */ |