diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2019-09-03 20:19:43 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2019-09-03 20:19:43 +0000 |
commit | faf3e20aeee5829fd9f2ad69400ec75fcd1b8965 (patch) | |
tree | 2df09987f4c3357956ba013be0cf91296d96df8c /tests | |
parent | cd199ea84517161d1c5aef1c5abe661133cbc0df (diff) | |
download | src-faf3e20aeee5829fd9f2ad69400ec75fcd1b8965.tar.gz src-faf3e20aeee5829fd9f2ad69400ec75fcd1b8965.zip |
MFC r351408-r351410: reduce pollution from mips machine/regnum.h
r351408:
libsa: mips: use _JB_* from machine/asm.h, remove regnum dep
This brings the libsa/mips _setjmp implementation closer to parity with the
libc version.
r351409:
mips: hide regnum definitions behind _KERNEL/_WANT_MIPS_REGNUM
machine/regnum.h ends up being included by sys/procfs.h and sys/ptrace.h via
machine/reg.h. Many of the regnum definitions are too short and too generic
to be exposing to any userland application including one of these two
headers. Moreover, these actively cause build failures in googletest
(template <typename T1 ...> expanding to template <typename 9 ...>).
Hide the definitions behind _KERNEL or _WANT_MIPS_REGNUM, and patch all of
the userland consumers to define as needed.
r351410:
libsa: mips: fix typo that had slipped into the diff on local machine
Notes
Notes:
svn path=/stable/11/; revision=351792
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sys/kern/ptrace_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sys/kern/ptrace_test.c b/tests/sys/kern/ptrace_test.c index e0ac381dd554..d42c09a8127e 100644 --- a/tests/sys/kern/ptrace_test.c +++ b/tests/sys/kern/ptrace_test.c @@ -33,6 +33,7 @@ __FBSDID("$FreeBSD$"); #include <sys/file.h> #include <sys/time.h> #include <sys/procctl.h> +#define _WANT_MIPS_REGNUM #include <sys/ptrace.h> #include <sys/queue.h> #include <sys/runq.h> |