summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/pmap.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-04-30 12:02:12 +0000
committerphk <phk@FreeBSD.org>1996-04-30 12:02:12 +0000
commit9502945d5babe42ab98a0a861784f84c983635f2 (patch)
tree5285e538e31862d70153bd471ed6fb9542241c9c /sys/i386/include/pmap.h
parentf7fbc2347dcece19b9a6f3c63246ad184e82a821 (diff)
downloadFreeBSD-src-9502945d5babe42ab98a0a861784f84c983635f2.zip
FreeBSD-src-9502945d5babe42ab98a0a861784f84c983635f2.tar.gz
pte.h: Add the VADDR(pdi,pti) macro to construct virtual address from
page dir+table index. pmap.h: remove NUPDE, it was wrong and not used. Sanitize KSTKPTEOFF. vmparam.h: Calculate virtual addr from PDI+PTI from pmap.h rather than using magic math. Remove UPDT, not used.
Diffstat (limited to 'sys/i386/include/pmap.h')
-rw-r--r--sys/i386/include/pmap.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h
index 3f54f18..87e483f 100644
--- a/sys/i386/include/pmap.h
+++ b/sys/i386/include/pmap.h
@@ -42,7 +42,7 @@
*
* from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90
* from: @(#)pmap.h 7.4 (Berkeley) 5/12/91
- * $Id: pmap.h,v 1.34 1996/02/25 03:02:53 dyson Exp $
+ * $Id: pmap.h,v 1.35 1996/04/03 05:23:44 dyson Exp $
*/
#ifndef _MACHINE_PMAP_H_
@@ -73,8 +73,6 @@ struct vm_map;
#define NKPDE 63 /* addressable number of page tables/pde's */
#endif
-#define NUPDE (NPTEPG-NKPDE) /* number of user pde's */
-
/*
* The *PTDI values control the layout of virtual memory
*
@@ -85,7 +83,7 @@ struct vm_map;
#define KPTDI (APTDPTDI-NKPDE)/* start of kernel virtual pde's */
#define PTDPTDI (KPTDI-1) /* ptd entry that points to ptd! */
#define KSTKPTDI (PTDPTDI-1) /* ptd entry for u./kernel&user stack */
-#define KSTKPTEOFF (NBPG/sizeof(pd_entry_t)-UPAGES) /* pte entry for kernel stack */
+#define KSTKPTEOFF (NPTEPG-UPAGES) /* pte entry for kernel stack */
#define PDESIZE sizeof(pd_entry_t) /* for assembly files */
#define PTESIZE sizeof(pt_entry_t) /* for assembly files */
OpenPOWER on IntegriCloud