aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/paging/paging.c
diff options
context:
space:
mode:
authorMarvin Borner2019-11-08 23:13:51 +0100
committerMarvin Borner2019-11-08 23:13:51 +0100
commit5f0475e159428e50e58f3772d6a759ff86b7b55a (patch)
treedb2610eb6a6613ecba2958f3277b9ec68ee144d6 /src/kernel/paging/paging.c
parentdd8c010755a3044f0832c7e732e1e3cdedb4a2ac (diff)
Began implementation of non-grub bootloader
Diffstat (limited to 'src/kernel/paging/paging.c')
-rw-r--r--src/kernel/paging/paging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/paging/paging.c b/src/kernel/paging/paging.c
index bb3b1df..a6bf5cc 100644
--- a/src/kernel/paging/paging.c
+++ b/src/kernel/paging/paging.c
@@ -19,7 +19,7 @@ void paging_install() {
// TODO: Calculate max memory
paging_set_present(0, 0x1000000);
- paging_set_used(0, ((uint32_t) end >> 12) + 1);
+ paging_set_used(0, ((uint32_t) ASM_KERNEL_END >> 12) + 1);
paging_enable();
vga_log("Installed paging", 4);