summaryrefslogtreecommitdiff
path: root/runtime.S
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-12-26 20:18:58 -0800
committerMike Pavone <pavone@retrodev.com>2012-12-26 20:18:58 -0800
commitb1940d5f9fa6cbb97aa0f7cef0a5fa61b6cb2c95 (patch)
treec8265d79777cbfa68901ab6779a84ca63e1f03c3 /runtime.S
parentf0d831f2b1e343592d0987dffdb5eb1064bd83ae (diff)
vertical interrupts now work
Diffstat (limited to 'runtime.S')
-rw-r--r--runtime.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime.S b/runtime.S
index bf7e06d..69b2dc2 100644
--- a/runtime.S
+++ b/runtime.S
@@ -16,6 +16,7 @@ handle_cycle_limit_int:
cmp 88(%rsi), %eax
jb skip_int
push %rcx
+ /* call print_int_dbg */
/* swap USP and SSP if not already in supervisor mode */
bt $5, 5(%rsi)
jc already_supervisor
@@ -50,6 +51,17 @@ already_supervisor:
jmp *%rcx
skip_int:
ret
+
+int_dbg_msg:
+ .asciz "Executing Interrupt!"
+print_int_dbg:
+ call m68k_save_context
+ push %rsi
+ lea int_dbg_msg(%rip), %rdi
+ call puts
+ pop %rsi
+ call m68k_load_context
+ ret
.global get_sr
get_sr: