X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/bffa3430fbbaaad29bec0b5bee9c1f0bfc7fd068..refs/heads/isa/arm64:/lunaix-os/kernel/boot_helper.c diff --git a/lunaix-os/kernel/boot_helper.c b/lunaix-os/kernel/boot_helper.c index ebc60d7..99977bc 100644 --- a/lunaix-os/kernel/boot_helper.c +++ b/lunaix-os/kernel/boot_helper.c @@ -5,7 +5,7 @@ #include #include #include -#include +#include /** * @brief Reserve memory for kernel bootstrapping initialization @@ -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;