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
This commit is contained in:
jake 2003-04-04 10:09:44 +00:00
parent 280085cacf
commit d6c1d0686d
2 changed files with 4 additions and 4 deletions

View File

@ -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! */

View File

@ -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! */