.section .text .globl syscall_entry .type syscall_entry, %function syscall_entry: # swapgs in the future push %rcx push %r11 push %r15 push %r9 push %r8 push %r10 push %rdx push %r14 push %r13 push %r12 push %rbp push %rbx push %rax push %rsi push %rdi call syscall_handler pop %rdi pop %rsi pop %rax pop %rbx pop %rbp pop %r12 pop %r13 pop %r14 pop %rdx pop %r10 pop %r8 pop %r9 pop %r15 pop %r11 pop %rcx sysretq