user space
entry_SYSCALL_64
1
do_syscall_64
c libraries
write
%rdi = 1 (fd)
struct pt_regs (save context / args)
syscall
applications
kernel
MSR
hardware
__x64_sys_write
0
sys_call_table
wenfh2020.com
%rdx = 11 (strlen(\"hello world\"))
%rsi = 0x4005e0 (\"hello world\")
sysretq
%rax = 1 (system call number)