summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/frame.h
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2002-05-28 12:24:29 +0000
committerbenno <benno@FreeBSD.org>2002-05-28 12:24:29 +0000
commit4fc9c21665166e4e9e124c40462138c91f084a0c (patch)
tree574710ab5af4f109af3bcd57f8ed6f7d48376309 /sys/powerpc/include/frame.h
parent1af92dbd990523626c74a0e064236c1dfaef3a16 (diff)
downloadFreeBSD-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.h5
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_ */
OpenPOWER on IntegriCloud