summaryrefslogtreecommitdiff
path: root/src/user/lib/intr.s
blob: 008387dc6f99e93c973870fe3a94ba8204d377c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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