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? |