.code32 
.global syscall_handler
.extern syscall
syscall_handler: 
    cli

    pushal
    push %ds

    mov $0x10, %ax               
    mov %ax, %ds
    
    push %esp
    call syscall  
    add $4, %esp

    pop %ds
    popal
    iret