1 /* $Id: sunos_asm.S,v 1.15 2000/01/11 17:33:21 jj Exp $
2 * sunos_asm.S: SunOS system calls which must have a low-level
3 * entry point to operate correctly.
5 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
7 * Based upon preliminary work which is:
9 * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
12 #include <asm/ptrace.h>
17 /* When calling ret_sys_call, %o0 should contain the same
18 * value as in [%sp + STACKFRAME_SZ + PT_I0] */
20 /* SunOS getpid() returns pid in %o0 and ppid in %o1 */
27 st %o0, [%sp + STACKFRAME_SZ + PT_I1]
30 st %o0, [%sp + STACKFRAME_SZ + PT_I0]
32 /* SunOS getuid() returns uid in %o0 and euid in %o1 */
39 st %o0, [%sp + STACKFRAME_SZ + PT_I1]
42 st %o0, [%sp + STACKFRAME_SZ + PT_I0]
44 /* SunOS getgid() returns gid in %o0 and egid in %o1 */
51 st %o0, [%sp + STACKFRAME_SZ + PT_I1]
54 st %o0, [%sp + STACKFRAME_SZ + PT_I0]
56 /* SunOS's execv() call only specifies the argv argument, the
57 * environment settings are the same as the calling processes.
61 st %g0, [%sp + STACKFRAME_SZ + PT_I2]
64 add %sp, STACKFRAME_SZ, %o0
67 ld [%sp + STACKFRAME_SZ + PT_I0], %o0