summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/param.h
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2002-02-14 01:39:11 +0000
committerbenno <benno@FreeBSD.org>2002-02-14 01:39:11 +0000
commit8c67ca76f79f837ceff85f7b9beb68cb784aaadd (patch)
treeea22ffca9020aeeb7d70a0afc75a11a1200af23b /sys/powerpc/include/param.h
parentc745bc3937461deb0149ef098ea50897e1e5c0a1 (diff)
downloadFreeBSD-src-8c67ca76f79f837ceff85f7b9beb68cb784aaadd.zip
FreeBSD-src-8c67ca76f79f837ceff85f7b9beb68cb784aaadd.tar.gz
Complete rework of the PowerPC pmap and a number of other bits in the early
boot sequence. The new pmap.c is based on NetBSD's newer pmap.c (for the mpc6xx processors) which is 70% faster than the older code that the original pmap.c was based on. It has also been based on the framework established by jake's initial sparc64 pmap.c. There is no change to how far the kernel gets (it makes it to the mountroot prompt in psim) but the new pmap code is a lot cleaner. Obtained from: NetBSD (pmap code)
Diffstat (limited to 'sys/powerpc/include/param.h')
-rw-r--r--sys/powerpc/include/param.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/powerpc/include/param.h b/sys/powerpc/include/param.h
index 3ac5646..6060f89 100644
--- a/sys/powerpc/include/param.h
+++ b/sys/powerpc/include/param.h
@@ -42,6 +42,8 @@
* Machine dependent constants for PowerPC (32-bit only currently)
*/
+#include <machine/pte.h>
+
/*
* Round p (pointer or byte index) up to a correctly-aligned value
* for all data types (int, long, ...). The result is unsigned int
@@ -113,7 +115,8 @@
#define MAXDUMPPGS (DFLTPHYS/PAGE_SIZE)
#ifndef KSTACK_UPAGES
-#define KSTACK_PAGES 2 /* includes pcb */
+#define KSTACK_PAGES 2 /* includes pcb */
+#define KSTACK_GUARD_PAGES 1
#endif
#define USPACE (KSTACK_PAGES * PAGE_SIZE) /* total size of pcb */
#define UAREA_PAGES 1 /* holds struct user WITHOUT PCB */
@@ -179,6 +182,7 @@
/* 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))
OpenPOWER on IntegriCloud