Doubt regarding asmlinkage
rohan.puri15 at gmail.com
Wed Sep 7 23:40:49 EDT 2011
Thanks for the response. I do agree with the issue concerning the no.of
registers available are less for 32 bit to that of 64 bit.
But even in this case if parameters are more than the no of register for 32
bit, then also before executing int 80h interrupt it stores the parameters
in the register and after that system call dispatcher puts them on the
kernel stack of that process. So, how the case where more than no of
registers are the parameters to the system call is handled.
On Thu, Sep 8, 2011 at 8:12 AM, Mulyadi Santosa
<mulyadi.santosa at gmail.com>wrote:
> Hi Rohan :)
> On Wed, Sep 7, 2011 at 19:09, rohan puri <rohan.puri15 at gmail.com> wrote:
> > Doubt i have is whats the need for 32-bit intel arch to put parameters on
> > stack and not registers in a way similar to x86_64?
> well, if you need to pass so many parameters, then x86 32 bit
> registers can not cope with that. You only have EAX, EBX, ECX, EDX,
> ESI, EDI as far as I could remember.
> probably in 64 bit, registers is way more so it's still possible to
> put them in registers, which is of course the fastest way to access
> Mulyadi Santosa
> Freelance Linux trainer and consultant
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kernelnewbies