From eb1935b62e64db66474b7b771bc7095a3fa421b7 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 14 Jul 2021 12:50:30 +0200 Subject: Kernel: Avoid hard-coding kernel virtual base --- Kernel/Arch/x86/common/Boot/boot.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Kernel') 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 -- cgit v1.2.3