]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r351408-r351410: reduce pollution from mips machine/regnum.h
authorKyle Evans <kevans@FreeBSD.org>
Tue, 3 Sep 2019 20:19:43 +0000 (20:19 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Tue, 3 Sep 2019 20:19:43 +0000 (20:19 +0000)
commit1bdb9589d444778137fbcee33a93b6213036f901
treea4676a52e7473faaa6e77f15fda20e055f78abc4
parentd708d88bd7ed45f4c411e7be97281717773c2dd3
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
lib/libc/mips/gen/_setjmp.S
lib/libc/mips/gen/makecontext.c
lib/libc/mips/gen/setjmp.S
lib/libc/mips/gen/sigsetjmp.S
lib/libproc/proc_regs.c
lib/libthread_db/arch/mips/libpthread_md.c
stand/libsa/mips/_setjmp.S
sys/mips/include/regnum.h
tests/sys/kern/ptrace_test.c