summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-02-23 09:45:50 +0000
committerjake <jake@FreeBSD.org>2003-02-23 09:45:50 +0000
commit8fafb8765a84c33765f647a404b0efcc88cbe946 (patch)
treed129cc11dbffdef2925938f896dae380c4b5502c /sys/amd64/include
parent1efdc354264822c8805c1d43784c93ba28fc14f0 (diff)
downloadFreeBSD-src-8fafb8765a84c33765f647a404b0efcc88cbe946.zip
FreeBSD-src-8fafb8765a84c33765f647a404b0efcc88cbe946.tar.gz
- Added macros PDESHIFT and PTESHIFT, use these instead of magic constants
in locore. - Removed the macros PTESIZE and PDESIZE, use sizeof instead in C. Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/pmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index 1805352..44f0b25 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -139,8 +139,8 @@
typedef u_int32_t pd_entry_t;
typedef u_int32_t pt_entry_t;
-#define PDESIZE sizeof(pd_entry_t) /* for assembly files */
-#define PTESIZE sizeof(pt_entry_t) /* for assembly files */
+#define PTESHIFT (2)
+#define PDESHIFT (2)
/*
* Address of current and alternate address space page table maps
OpenPOWER on IntegriCloud