Re: Save and restore all used registers before and after a system-call assembly instruction.

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

 



* William Tambe:

> Is there a way to make GCC save all used registers before a
> system-call assembly instruction and restore them after the
> system-call assembly instruction ?

This happens automatically if you specify the right clobbers for the
extended asm statement containing the system call instruction.

Of course, this only works really well if the kernel can trust the rest
of the system, so that it does not need to clear all registers when
returning to userspace.

Thanks,
Florian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux