Results 1 to 3 of 3
please review my statement to check out whether it is right or not? thanks.
this topic is about syscall.
when i invoke a syscall, the parameters are passed through at ...
- 05-13-2008 #1Just Joined!
- Join Date
- Apr 2008
- Posts
- 1
check my view on syscall, asmlinkage?
please review my statement to check out whether it is right or not? thanks.
this topic is about syscall.
when i invoke a syscall, the parameters are passed through at most 5 registers. so we call access parameters through registers. but, all the syscall implementations routines (sys.c) are started with asmlinkage, which means the functions should get parameters from cpu stack rather than registers. so, are all the parameters in registers pushed into cpu stack when the syscall enters enter.S or somewhere?
anything special about asmlikage?
- 05-15-2008 #2Just Joined!
- Join Date
- May 2008
- Posts
- 55
I think when you make syscall, kernel also has to switch to its kernel mode stack too.
- 05-15-2008 #3Just Joined!
- Join Date
- May 2008
- Posts
- 55
in case of more than 5 params, I think register ebx will be pointing to the memory where parameters can be found, I think that could be stack.


Reply With Quote
