summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/param.h
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2004-02-11 07:27:34 +0000
committergrehan <grehan@FreeBSD.org>2004-02-11 07:27:34 +0000
commitcf91052361590ecb2b4c952b3722b496516f4287 (patch)
treee4823e473382c2aa93ccc87ad7c5a76631560c39 /sys/powerpc/include/param.h
parent2f334f4f85ed68c71028b7ae416fec6a71dd2f3c (diff)
downloadFreeBSD-src-cf91052361590ecb2b4c952b3722b496516f4287.zip
FreeBSD-src-cf91052361590ecb2b4c952b3722b496516f4287.tar.gz
Cleaned up param.h:
- culled long-dead #define's - segment register defs moved to sr.h - NPMAPS moved to pmap.h - KERNBASE moved to vmparam.h - removed include of <machine/cpu.h> and fixed src files that relied on this. Modifying segment register code no longer causes gcc rebuilds :-)
Diffstat (limited to 'sys/powerpc/include/param.h')
-rw-r--r--sys/powerpc/include/param.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/sys/powerpc/include/param.h b/sys/powerpc/include/param.h
index 6180b66..dd6dd8b 100644
--- a/sys/powerpc/include/param.h
+++ b/sys/powerpc/include/param.h
@@ -76,10 +76,6 @@
#endif
#define MID_MACHINE MID_POWERPC
-#if !defined(LOCORE)
-#include <machine/cpu.h>
-#endif
-
#ifdef SMP
#define MAXCPU 2
#else
@@ -94,9 +90,6 @@
#define PAGE_MASK (PAGE_SIZE - 1)
#define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
-#define KERNBASE 0x100000 /* start of kernel virtual */
-#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)
-
#ifndef KSTACK_PAGES
#define KSTACK_PAGES 4 /* includes pcb */
#endif
@@ -120,28 +113,5 @@
#define pgtok(x) ((x) * (PAGE_SIZE / 1024))
-/* XXX: NetBSD defines that we're using for the moment */
-#define USER_SR 13
-#define KERNEL_SR 14
-#define KERNEL_VSIDBITS 0xfffff
-#define KERNEL_SEGMENT (0xfffff0 + KERNEL_SR)
-#define EMPTY_SEGMENT 0xfffff0
-#define USER_ADDR ((void *)(USER_SR << ADDR_SR_SHFT))
-#define SEGMENT_LENGTH 0x10000000
-#define SEGMENT_MASK 0xf0000000
-
-#if !defined(NPMAPS)
-#define NPMAPS 32768
-#endif /* !defined(NPMAPS) */
-
-#if !defined(MSGBUFSIZE)
-#define MSGBUFSIZE PAGE_SIZE
-#endif /* !defined(MSGBUFSIZE) */
-
-/*
- * XXX: Stop NetBSD msgbuf_paddr code from happening.
- */
-#define MSGBUFADDR
-
#endif /* !_MACHINE_PARAM_H_ */
#endif /* !_NO_NAMESPACE_POLLUTION */
OpenPOWER on IntegriCloud