From 1e6f0146d2e194045188ba24826eaaaee05605cb Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Wed, 14 Sep 2011 13:47:04 -0400 Subject: [PATCH] Use | instead of + for entrypgdir. Linker doesn't get in our way here. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index a5bbf40..c0c3a91 100644 --- a/main.c +++ b/main.c @@ -106,9 +106,9 @@ startothers(void) __attribute__((__aligned__(PGSIZE))) pde_t entrypgdir[NPDENTRIES] = { // Map VA's [0, 4MB) to PA's [0, 4MB) - [0] = (0) + PTE_P + PTE_W + PTE_PS, + [0] = (0) | PTE_P | PTE_W | PTE_PS, // Map VA's [KERNBASE, KERNBASE+4MB) to PA's [0, 4MB) - [KERNBASE>>PDXSHIFT] = (0) + PTE_P + PTE_W + PTE_PS, + [KERNBASE>>PDXSHIFT] = (0) | PTE_P | PTE_W | PTE_PS, }; //PAGEBREAK!