diff options
author | jake <jake@FreeBSD.org> | 2003-04-04 10:09:44 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2003-04-04 10:09:44 +0000 |
commit | 098b68fc78b19fbb3d51f0171640ee3012424e32 (patch) | |
tree | 89ebdafc426c7d3ab0f47e21d1dab86d782b4b36 | |
parent | ff6ab443fdfac54d45368cde95eed170b53a6cbe (diff) | |
download | FreeBSD-src-098b68fc78b19fbb3d51f0171640ee3012424e32.zip FreeBSD-src-098b68fc78b19fbb3d51f0171640ee3012424e32.tar.gz |
Bandaid fix for previous commit while I figure out why it broke. This
caused crashes early in boot on i386 UP machines.
Reported by: phk
Pointy hat to: jake
-rw-r--r-- | sys/amd64/include/pmap.h | 4 | ||||
-rw-r--r-- | sys/i386/include/pmap.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index d1e2975..b5e2378 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -111,7 +111,7 @@ #ifdef SMP #define NKPDE (KVA_PAGES - 1) /* number of page tables/pde's */ #else -#define NKPDE (KVA_PAGES) /* number of page tables/pde's */ +#define NKPDE (KVA_PAGES - 1) /* number of page tables/pde's */ #endif #endif @@ -127,7 +127,7 @@ #define MPPTDI (NPDEPTD-1) /* per cpu ptd entry */ #define KPTDI (MPPTDI-NKPDE) /* start of kernel virtual pde's */ #else -#define KPTDI (NPDEPTD-NKPDE)/* start of kernel virtual pde's */ +#define KPTDI ((NPDEPTD-1)-NKPDE)/* start of kernel virtual pde's */ #endif /* SMP */ #define PTDPTDI (KPTDI-NPGPTD) /* ptd entry that points to ptd! */ diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h index d1e2975..b5e2378 100644 --- a/sys/i386/include/pmap.h +++ b/sys/i386/include/pmap.h @@ -111,7 +111,7 @@ #ifdef SMP #define NKPDE (KVA_PAGES - 1) /* number of page tables/pde's */ #else -#define NKPDE (KVA_PAGES) /* number of page tables/pde's */ +#define NKPDE (KVA_PAGES - 1) /* number of page tables/pde's */ #endif #endif @@ -127,7 +127,7 @@ #define MPPTDI (NPDEPTD-1) /* per cpu ptd entry */ #define KPTDI (MPPTDI-NKPDE) /* start of kernel virtual pde's */ #else -#define KPTDI (NPDEPTD-NKPDE)/* start of kernel virtual pde's */ +#define KPTDI ((NPDEPTD-1)-NKPDE)/* start of kernel virtual pde's */ #endif /* SMP */ #define PTDPTDI (KPTDI-NPGPTD) /* ptd entry that points to ptd! */ |