fix: remove redundant .bss zeroing that destroyed page tables
Co-authored-by: aider (openrouter/moonshotai/kimi-k2.6) <aider@aider.chat>
This commit is contained in:
@@ -83,12 +83,6 @@ long_mode_start:
|
|||||||
movabsq $stack_top, %rax
|
movabsq $stack_top, %rax
|
||||||
movq %rax, %rsp
|
movq %rax, %rsp
|
||||||
|
|
||||||
movabsq $__bss_start, %rdi
|
|
||||||
movabsq $__bss_end, %rcx
|
|
||||||
subq %rdi, %rcx
|
|
||||||
xorq %rax, %rax
|
|
||||||
rep stosb
|
|
||||||
|
|
||||||
call kernel_main
|
call kernel_main
|
||||||
cli
|
cli
|
||||||
1:
|
1:
|
||||||
|
|||||||
@@ -137,6 +137,7 @@ void forth_printf(const char* fmt, ...) {
|
|||||||
|
|
||||||
void kernel_main(void) {
|
void kernel_main(void) {
|
||||||
serial_init();
|
serial_init();
|
||||||
|
forth_printf("Kernel started\n");
|
||||||
forth_run();
|
forth_run();
|
||||||
forth_panic();
|
forth_panic();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user