diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2017-01-22 06:30:55 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2017-01-22 06:30:55 +0000 |
commit | 3e7e31bda08956dfbde05d6be22ba994b6b5fe2d (patch) | |
tree | 7b4aca16f864a7bed07622c1c8cf152502bcbd4d /sys/powerpc | |
parent | e334d5bd3f2f4d3ec7d9fe6cbbf109cc952d809d (diff) | |
download | src-3e7e31bda08956dfbde05d6be22ba994b6b5fe2d.tar.gz src-3e7e31bda08956dfbde05d6be22ba994b6b5fe2d.zip |
Hide the 'MOREARGS' macro, it conflicts with contrib code, and is only used in one file.
PR: 211818
Reported by: Mark Millard <markmi AT dsl-only.net>
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=312617
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/include/frame.h | 2 | ||||
-rw-r--r-- | sys/powerpc/powerpc/trap.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/powerpc/include/frame.h b/sys/powerpc/include/frame.h index e6fb103c7af5..667b58c4b447 100644 --- a/sys/powerpc/include/frame.h +++ b/sys/powerpc/include/frame.h @@ -109,7 +109,5 @@ 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) + \ - sizeof(struct callframe) - 3*sizeof(register_t))) /* more args go here */ #endif /* _MACHINE_FRAME_H_ */ diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c index 6611703771d9..d58cba3e1c61 100644 --- a/sys/powerpc/powerpc/trap.c +++ b/sys/powerpc/powerpc/trap.c @@ -80,6 +80,9 @@ __FBSDID("$FreeBSD$"); #define FAULTBUF_CR 22 #define FAULTBUF_R14 3 +#define MOREARGS(sp) ((caddr_t)((uintptr_t)(sp) + \ + sizeof(struct callframe) - 3*sizeof(register_t))) /* more args go here */ + static void trap_fatal(struct trapframe *frame); static void printtrap(u_int vector, struct trapframe *frame, int isfatal, int user); |