ref: 6e32479cf6b040766b1788d6f79db4562ca7f05e
dir: /syscall-linux.s/
.globl std$syscall std$syscall: pushl %ebp /* hack: 6 args uses %ebp, so we index relative to %esp. hack: We load 6 args regardless of how many we actually have. This may load junk values, but if the syscall doesn't use them, it's going to be harmless. */ movl 8(%esp),%eax movl 12(%esp),%ebx movl 16(%esp),%ecx movl 20(%esp),%edx movl 24(%esp),%esi movl 28(%esp),%edi movl 32(%esp),%ebp int $0x80 popl %ebp ret