summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-07-14 12:50:30 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-16 18:50:59 +0200
commiteb1935b62e64db66474b7b771bc7095a3fa421b7 (patch)
tree7041d027e92f32a623d1ff0ada2c64f88864d2f7 /Kernel
parent9e36158ecee854099ac6282e2e2aab0739933de4 (diff)
downloadserenity-eb1935b62e64db66474b7b771bc7095a3fa421b7.zip
Kernel: Avoid hard-coding kernel virtual base
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Arch/x86/common/Boot/boot.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Arch/x86/common/Boot/boot.S b/Kernel/Arch/x86/common/Boot/boot.S
index 011e7f05d9..8cd939f5f2 100644
--- a/Kernel/Arch/x86/common/Boot/boot.S
+++ b/Kernel/Arch/x86/common/Boot/boot.S
@@ -309,8 +309,8 @@ end_of_print_and_halt_function:
real_start:
cli
cld
- mov $end_of_kernel_image, %esi
- cmp $0xc2000000, %esi
+ mov $(end_of_kernel_image - KERNEL_BASE), %esi
+ cmp $KERNEL_PD_OFFSET, %esi
jbe kernel_not_too_large
movl $(kernel_image_too_big_string - KERNEL_BASE), %esi