svn commit: r197782 - projects/ppc64/sys/powerpc/include
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Mon Oct 5 15:45:26 UTC 2009
Author: nwhitehorn
Date: Mon Oct 5 15:45:25 2009
New Revision: 197782
URL: http://svn.freebsd.org/changeset/base/197782
Log:
Set the location for stack-based arguments in an ABI-independent way.
Modified:
projects/ppc64/sys/powerpc/include/frame.h
Modified: projects/ppc64/sys/powerpc/include/frame.h
==============================================================================
--- projects/ppc64/sys/powerpc/include/frame.h Mon Oct 5 15:27:01 2009 (r197781)
+++ projects/ppc64/sys/powerpc/include/frame.h Mon Oct 5 15:45:25 2009 (r197782)
@@ -111,6 +111,7 @@ struct callframe {
/* Definitions for syscalls */
#define FIRSTARG 3 /* first arg in reg 3 */
#define NARGREG 8 /* 8 args in regs */
-#define MOREARGS(sp) ((caddr_t)((uintptr_t)(sp) + 8)) /* more args go here */
+#define MOREARGS(sp) ((caddr_t)((uintptr_t)(sp) + \
+ sizeof(struct callframe) - 3*sizeof(register_t))) /* more args go here */
#endif /* _MACHINE_FRAME_H_ */
More information about the svn-src-projects
mailing list