Re: Registers preserved in system calls

Richard B. Johnson (root@chaos.analogic.com)
Fri, 13 Aug 1999 08:51:43 -0400 (EDT)


On Fri, 13 Aug 1999, [iso-8859-1] Jörg Pleumann wrote:

> Hello,
>
> is there any convention on the registers being used/preserved in an i386
> Linux system call? Can I --for example-- be sure that all registers
> except the ones used for parameter passing are preserved by the call?
>

The last time I looked, registers esi, edi, ebx, and the segment registers
are preserved. All others may be destroyed.

Cheers,
Dick Johnson
**** FILE SYSTEM WAS MODIFIED ****
Penguin : Linux version 2.3.13 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/