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