summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2016-01-13 21:38:52 +0000
committermarius <marius@FreeBSD.org>2016-01-13 21:38:52 +0000
commit7be34d59a5d4a3b34eb6abdf24ddd3f3f626f043 (patch)
tree6f73fff8eb0743d3f29e08906a430348608a3426 /sys/kern
parente357bdb742b2696dcb81404917b6247f9e840232 (diff)
downloadFreeBSD-src-7be34d59a5d4a3b34eb6abdf24ddd3f3f626f043.zip
FreeBSD-src-7be34d59a5d4a3b34eb6abdf24ddd3f3f626f043.tar.gz
MFC: r292943, r292960
- (Ab)use udivx for dividing the u_int pc_cpuid when implementing CPU_ISSET(), CPU_SET() etc. in sparc64 asm. This approach has the benefit of not clobbering %y, allowing to revert r222827 and partially r222828. - In r222828, CATR() already was changed to use the equivalent of PCPU_GET(cpuid) instead of the MD module ID for KTR_MASK, so belatedly also catch up with KTR_CPU and the C side of ktr(9). Originally, in r203838 CATR() was moved away from directly reading the module ID or equivalent as that became impractical with other CPU types than USI/II supported. With r222828 in place, per-CPU data generally is set up soon enough, though, that employing PCPU things in ktr(9) also for use during early stages works. - Unfortunately, an exception to the latter is the ktr(9) use in pmap_bootstrap(), which actually is run so early that even checking for bootverbose being set via the loader doesn't work. Consequently, replace the ktr(9) use in pmap_bootstrap() with OF_printf(9) and put it under #ifdef DIAGNOSTIC instead.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_ktr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/kern_ktr.c b/sys/kern/kern_ktr.c
index 428afae..e988f2b 100644
--- a/sys/kern/kern_ktr.c
+++ b/sys/kern/kern_ktr.c
@@ -54,9 +54,6 @@ __FBSDID("$FreeBSD$");
#include <sys/time.h>
#include <machine/cpu.h>
-#ifdef __sparc64__
-#include <machine/ktr.h>
-#endif
#ifdef DDB
#include <ddb/ddb.h>
OpenPOWER on IntegriCloud