From 2526b92ab3885b984e5c96179c4befe1e5a88636 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Tue, 11 May 2021 02:09:59 +0200 Subject: [PATCH] stivale2: Reduce verbosity --- stage23/protos/stivale2.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/stage23/protos/stivale2.c b/stage23/protos/stivale2.c index 3b83f292..fbd0feb4 100644 --- a/stage23/protos/stivale2.c +++ b/stage23/protos/stivale2.c @@ -95,7 +95,6 @@ void stivale2_load(char *config, char *cmdline, bool pxe, void *efi_system_table } // Check if 5-level paging is available if (cpuid(0x00000007, 0, &eax, &ebx, &ecx, &edx) && (ecx & (1 << 16))) { - print("stivale2: CPU has 5-level paging support\n"); level5pg = true; } @@ -118,8 +117,6 @@ void stivale2_load(char *config, char *cmdline, bool pxe, void *efi_system_table panic("stivale2: Not 32 nor 64 bit x86 ELF file."); } - print("stivale2: %u-bit ELF file detected\n", bits); - switch (ret) { case 1: panic("stivale2: File is not a valid ELF."); @@ -140,11 +137,6 @@ void stivale2_load(char *config, char *cmdline, bool pxe, void *efi_system_table if (stivale2_hdr.entry_point != 0) entry_point = stivale2_hdr.entry_point; - print("stivale2: Kernel slide: %X\n", slide); - - print("stivale2: Entry point at: %X\n", entry_point); - print("stivale2: Requested stack at: %X\n", stivale2_hdr.stack); - strcpy(stivale2_struct.bootloader_brand, "Limine"); strcpy(stivale2_struct.bootloader_version, LIMINE_VERSION); @@ -228,12 +220,6 @@ void stivale2_load(char *config, char *cmdline, bool pxe, void *efi_system_table m->begin = REPORTED_ADDR((uint64_t)(size_t)freadall(&f, STIVALE2_MMAP_KERNEL_AND_MODULES)); m->end = m->begin + f.size; - - print("stivale2: Requested module %u:\n", i); - print(" Path: %s\n", module_path); - print(" String: %s\n", m->string); - print(" Begin: %X\n", m->begin); - print(" End: %X\n", m->end); } append_tag(&stivale2_struct, (struct stivale2_tag *)tag); @@ -291,7 +277,6 @@ void stivale2_load(char *config, char *cmdline, bool pxe, void *efi_system_table tag->tag.identifier = STIVALE2_STRUCT_TAG_EPOCH_ID; tag->epoch = time(); - print("stivale2: Current epoch: %U\n", tag->epoch); append_tag(&stivale2_struct, (struct stivale2_tag *)tag); } @@ -492,19 +477,6 @@ skip_modeset:; append_tag(&stivale2_struct, (struct stivale2_tag *)tag); } - ////////////////////////////////////////////// - // List tags - ////////////////////////////////////////////// - print("stivale2: Generated tags:\n"); - struct stivale2_tag *taglist = (void*)(size_t)stivale2_struct.tags; - for (size_t i = 0; ; i++) { - print(" Tag #%u ID: %X\n", i, taglist->identifier); - if (taglist->next) - taglist = (void*)(size_t)taglist->next; - else - break; - } - // Clear terminal for kernels that will use the stivale2 terminal term_write("\e[2J\e[H", 7);