Date: Mon, 5 Oct 2009 15:45:26 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r197782 - projects/ppc64/sys/powerpc/include Message-ID: <200910051545.n95FjQM8017054@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910051545.n95FjQM8017054>