git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
physical page list mapping
[lunaix-os.git]
/
lunaix-os
/
kernel
/
boot_helper.c
diff --git
a/lunaix-os/kernel/boot_helper.c
b/lunaix-os/kernel/boot_helper.c
index 37e6bb4775ce991c1522c7e59d54a6ecae1f8e1c..99977bcf8ce386f500c20bf999deeb9e2a743fd7 100644
(file)
--- a/
lunaix-os/kernel/boot_helper.c
+++ b/
lunaix-os/kernel/boot_helper.c
@@
-20,7
+20,7
@@
boot_begin(struct boot_handoff* bhctx)
boot_begin_arch_reserve(bhctx);
// 将内核占据的页,包括前1MB,hhk_init 设为已占用
- size_t pg_count = leaf_count(to_kphysical(kernel_
load_
end));
+ size_t pg_count = leaf_count(to_kphysical(kernel_end));
pmm_onhold_range(0, pg_count);
size_t i;