CeDOS - Commit 0da610c2

boot: Check return of load_kernel function
Celina Sophie Kalus
Tue, 05 Dec 2023 23:34:04 +0100
1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M boot/entry.sboot/entry.s

@@ -186,6 +186,9 @@ mov %eax, %fs

mov %eax, %gs call load_kernel + + test %eax, %eax + jnz loop # create a page directory for the kernel that maps it to 0xC0000000 # and identity maps the first 1M of memory