Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/ia32/ia32_exception.S
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | int0x80_syscall_common: | ||||
movq %r12,TF_R12(%rsp) | movq %r12,TF_R12(%rsp) | ||||
movq %r13,TF_R13(%rsp) | movq %r13,TF_R13(%rsp) | ||||
movq %r14,TF_R14(%rsp) | movq %r14,TF_R14(%rsp) | ||||
movq %r15,TF_R15(%rsp) | movq %r15,TF_R15(%rsp) | ||||
movl $TF_HASSEGS,TF_FLAGS(%rsp) | movl $TF_HASSEGS,TF_FLAGS(%rsp) | ||||
pushfq | pushfq | ||||
andq $~(PSL_D | PSL_AC),(%rsp) | andq $~(PSL_D | PSL_AC),(%rsp) | ||||
popfq | popfq | ||||
FAKE_MCOUNT(TF_RIP(%rsp)) | |||||
movq %rsp, %rdi | movq %rsp, %rdi | ||||
call ia32_syscall | call ia32_syscall | ||||
MEXITCOUNT | |||||
jmp doreti | jmp doreti |