ElBlo
TIL Linux Kernel x86 ABI
On x86, the Linux Kernel uses a slightly different ABI that userspace linux for
parameter passing on function calls. Instead of passing parameters via the stack
in reverse order, it uses eax, edx and ecx for passing the first three
parameters. This is done via the regparm compiler option12. I found
out about this thanks to this helpful stackoverflow
answer.