mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-03 06:39:07 +00:00
Kernel: Avoid hard-coding kernel virtual base
This commit is contained in:
parent
9e36158ece
commit
eb1935b62e
Notes:
sideshowbarker
2024-07-18 08:55:56 +09:00
Author: https://github.com/gunnarbeutner
Commit: eb1935b62e
Pull-request: https://github.com/SerenityOS/serenity/pull/8800
Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 2 deletions
|
@ -309,8 +309,8 @@ end_of_print_and_halt_function:
|
||||||
real_start:
|
real_start:
|
||||||
cli
|
cli
|
||||||
cld
|
cld
|
||||||
mov $end_of_kernel_image, %esi
|
mov $(end_of_kernel_image - KERNEL_BASE), %esi
|
||||||
cmp $0xc2000000, %esi
|
cmp $KERNEL_PD_OFFSET, %esi
|
||||||
jbe kernel_not_too_large
|
jbe kernel_not_too_large
|
||||||
|
|
||||||
movl $(kernel_image_too_big_string - KERNEL_BASE), %esi
|
movl $(kernel_image_too_big_string - KERNEL_BASE), %esi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue