diff options
Diffstat (limited to 'src/user/lib/intr.s')
-rw-r--r-- | src/user/lib/intr.s | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/user/lib/intr.s b/src/user/lib/intr.s new file mode 100644 index 0000000..008387d --- /dev/null +++ b/src/user/lib/intr.s @@ -0,0 +1,20 @@ +.section .text +.global intr_trampoline +.type intr_trampoline, @function +intr_trampoline: + push %rax + push %rdx + call *_intr(%rip) + pop %rdx + pop %rax + pop tmprip(%rip) + pop %rsp + jmp *tmprip(%rip) + +.section .bss +tmprip: + .skip 8 + +.global _intr +_intr: + .skip 8 |