mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +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:
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue