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]

 



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 ?

The idea is that, since the compiler knows what registers it is using,
it could save and restore those registers, so that the kernel would
only need to save the stack-pointer register and program-counter.



[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