From 16496af3719d39dba6b308f789b40413074b16b4 Mon Sep 17 00:00:00 2001 From: Adrian-Ken Rueegsegger Date: Fri, 20 Feb 2015 16:04:01 +0100 Subject: [PATCH] hw_x86_64: Create temporary copy of client RAX in kernel entry Copy client context RAX value to buffer to enable use of RAX as scratch register. --- repos/base-hw/src/core/spec/x86_64/mode_transition.s | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/repos/base-hw/src/core/spec/x86_64/mode_transition.s b/repos/base-hw/src/core/spec/x86_64/mode_transition.s index 37b8bd1cd..55f16bb2b 100644 --- a/repos/base-hw/src/core/spec/x86_64/mode_transition.s +++ b/repos/base-hw/src/core/spec/x86_64/mode_transition.s @@ -73,6 +73,10 @@ */ .global _mt_kernel_entry_pic _mt_kernel_entry_pic: + + /* Copy client context RAX to buffer */ + mov %rax, _mt_buffer + 1: jmp 1b .global _mt_user_entry_pic