I have read that Linux works with stack to pass arguments to functions on 32 bits x86 computers.
But i have looked deeper and it seems that kernel uses eax for first parameter (see commit_creds)
So i do not understand.
Thanks
I have read that Linux works with stack to pass arguments to functions on 32 bits x86 computers.
But i have looked deeper and it seems that kernel uses eax for first parameter (see commit_creds)
So i do not understand.
Thanks
I think this: Function parameter passing in a Linux kernel interrupt handler (from asm to C) has explanation to your concern. Putting it shortly, EAX will be used for optimization.