aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/memory/paging.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-02 18:17:35 +0200
committerMarvin Borner2020-05-02 18:17:35 +0200
commite8f1c287a63f0f71fe463f7271834538b45f8c05 (patch)
tree6eebab2d27e610c8eeb130ddfd6a7f858ece411a /src/kernel/memory/paging.c
parentaa8a8811818331cf511681327e3ba95e456f0d33 (diff)
Some work in the vfs
Diffstat (limited to 'src/kernel/memory/paging.c')
-rw-r--r--src/kernel/memory/paging.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/memory/paging.c b/src/kernel/memory/paging.c
index add400e..f355449 100644
--- a/src/kernel/memory/paging.c
+++ b/src/kernel/memory/paging.c
@@ -88,12 +88,11 @@ void paging_map(struct page_directory *dir, uint32_t phys, uint32_t virt)
short id = virt >> 22;
struct page_table *tab = paging_make_table();
- dir->tables[id] = ((struct page_table *)((uint32_t)tab | 3 | 4)); // RW
+ dir->tables[id] = ((struct page_table *)((uint32_t)tab | 3)); // RW
for (int i = 0; i < 1024; i++) {
tab->pages[i].frame = phys >> 12;
tab->pages[i].present = 1;
- tab->pages[i].user = 1; // TODO: Remove all-user paging!
phys += 4096;
}
}