summaryrefslogtreecommitdiff
path: root/src/libc/intr.s
blob: dcc61fedb3334a3f9c871121a739b10f58a58116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
.section .text
.global intr_trampoline
.type intr_trampoline, @function
intr_trampoline:
	mov %rsp, %rdi /* pass intr_data as the argument */
	and $~0xF, %rsp
	call *_intr(%rip)
	int3 /* you weren't supposed to return */

.section .bss
.global _intr
_intr:
	.skip 8