diff options
author | benno <benno@FreeBSD.org> | 2002-05-28 12:24:29 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2002-05-28 12:24:29 +0000 |
commit | 4fc9c21665166e4e9e124c40462138c91f084a0c (patch) | |
tree | 574710ab5af4f109af3bcd57f8ed6f7d48376309 /sys/powerpc/include/frame.h | |
parent | 1af92dbd990523626c74a0e064236c1dfaef3a16 (diff) | |
download | FreeBSD-src-4fc9c21665166e4e9e124c40462138c91f084a0c.zip FreeBSD-src-4fc9c21665166e4e9e124c40462138c91f084a0c.tar.gz |
- Move macros that represent where syscall args are kept in a trapframe from
trap.c to frame.h
- Use the macros in vm_machdep.c:cpu_fork() to set up the trap frame of the
new thread.
Diffstat (limited to 'sys/powerpc/include/frame.h')
-rw-r--r-- | sys/powerpc/include/frame.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/powerpc/include/frame.h b/sys/powerpc/include/frame.h index 63f07bf..27a5276 100644 --- a/sys/powerpc/include/frame.h +++ b/sys/powerpc/include/frame.h @@ -136,4 +136,9 @@ struct spillframe { register_t r0; /* 48 */ }; +/* Definitions for syscalls */ +#define FIRSTARG 3 /* first arg in reg 3 */ +#define NARGREG 8 /* 8 args in regs */ +#define MOREARGS(sp) ((caddr_t)((int)(sp) + 8)) /* more args go here */ + #endif /* _MACHINE_FRAME_H_ */ |