summaryrefslogtreecommitdiff
path: root/runtime.S
diff options
context:
space:
mode:
Diffstat (limited to 'runtime.S')
-rw-r--r--runtime.S16
1 files changed, 15 insertions, 1 deletions
diff --git a/runtime.S b/runtime.S
index fc308fc..9fdef69 100644
--- a/runtime.S
+++ b/runtime.S
@@ -630,5 +630,19 @@ m68k_load_context:
.global m68k_start_context
m68k_start_context:
+ push %rbp
+ push %r12
+ push %r13
+ push %r14
+ push %r15
+
call m68k_load_context
- jmp *%rdi
+ call *%rdi
+
+ pop %r15
+ pop %r14
+ pop %r13
+ pop %r12
+ pop %rbp
+
+ ret