From f66140abab48d3c3c7910d1842b1daf3571d73ad Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 17 Jul 2021 19:10:40 +0200 Subject: Revert "debug code, verifies if the memory gets set up correctly" not meant to be in the main tree, included for completeness --- src/arch/i386/boot.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/arch/i386') diff --git a/src/arch/i386/boot.c b/src/arch/i386/boot.c index fa35c01..242d070 100644 --- a/src/arch/i386/boot.c +++ b/src/arch/i386/boot.c @@ -7,25 +7,6 @@ #include #include -void module_test(struct multiboot_info *multiboot) { - log_const("module test..."); - struct multiboot_mod mod = multiboot->mods[0]; - log_write(mod.start, mod.end - mod.start - 1); - - extern void _bss_end; - long ptr = &_bss_end; - log_const("_bss_end "); - log_var_dont_use(ptr); - extern void _data_end; - ptr = &_data_end; - log_const(" _data_end "); - log_var_dont_use(ptr); - log_const(" mod.start "); - log_var_dont_use(mod.start); - log_const(" mod.end "); - log_var_dont_use(mod.end); -} - void kmain_early(struct multiboot_info *multiboot) { struct kmain_info info; @@ -37,7 +18,6 @@ void kmain_early(struct multiboot_info *multiboot) { idt_init(); log_const("sysenter..."); sysenter_setup(); - module_test(multiboot); { // find the init module struct multiboot_mod *module = &multiboot->mods[0]; -- cgit v1.2.3