Re: Question on asmlinkage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 16 January 2008, srinivas bakki wrote:
> > No they aren't. The stack _is_ switched though.
>
> And how do the arguments reach the kernel stack from the user space if they
> were supposed to be fetched  from the stack ?
>
>

The arguments come from userspace in registers. The exception that handles the 
system call will take the arguments from registers and put them on the stack. 
Then it will call the actual function that implements a particular system 
call (say sys_open).

Regards,
tavi

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux