.section .text .extern fake_syscall_handler .global fake_syscall_entry fake_syscall_entry: hlt .global fake_syscall_return fake_syscall_return: cli mov %rdi, %rsp lgdt (%rsp) add $16, %rsp movw (%rsp), %ds movw (%rsp), %es movw (%rsp), %fs movw (%rsp), %gs movw (%rsp), %ss add $8, %rsp lretq