* 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