mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-11 09:14:38 +03:00
stivale2: Reduce verbosity
This commit is contained in:
parent
3681263f7b
commit
2526b92ab3
@ -95,7 +95,6 @@ void stivale2_load(char *config, char *cmdline, bool pxe, void *efi_system_table
|
|||||||
}
|
}
|
||||||
// Check if 5-level paging is available
|
// Check if 5-level paging is available
|
||||||
if (cpuid(0x00000007, 0, &eax, &ebx, &ecx, &edx) && (ecx & (1 << 16))) {
|
if (cpuid(0x00000007, 0, &eax, &ebx, &ecx, &edx) && (ecx & (1 << 16))) {
|
||||||
print("stivale2: CPU has 5-level paging support\n");
|
|
||||||
level5pg = true;
|
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.");
|
panic("stivale2: Not 32 nor 64 bit x86 ELF file.");
|
||||||
}
|
}
|
||||||
|
|
||||||
print("stivale2: %u-bit ELF file detected\n", bits);
|
|
||||||
|
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case 1:
|
case 1:
|
||||||
panic("stivale2: File is not a valid ELF.");
|
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)
|
if (stivale2_hdr.entry_point != 0)
|
||||||
entry_point = stivale2_hdr.entry_point;
|
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_brand, "Limine");
|
||||||
strcpy(stivale2_struct.bootloader_version, LIMINE_VERSION);
|
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->begin = REPORTED_ADDR((uint64_t)(size_t)freadall(&f, STIVALE2_MMAP_KERNEL_AND_MODULES));
|
||||||
m->end = m->begin + f.size;
|
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);
|
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->tag.identifier = STIVALE2_STRUCT_TAG_EPOCH_ID;
|
||||||
|
|
||||||
tag->epoch = time();
|
tag->epoch = time();
|
||||||
print("stivale2: Current epoch: %U\n", tag->epoch);
|
|
||||||
|
|
||||||
append_tag(&stivale2_struct, (struct stivale2_tag *)tag);
|
append_tag(&stivale2_struct, (struct stivale2_tag *)tag);
|
||||||
}
|
}
|
||||||
@ -492,19 +477,6 @@ skip_modeset:;
|
|||||||
append_tag(&stivale2_struct, (struct stivale2_tag *)tag);
|
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
|
// Clear terminal for kernels that will use the stivale2 terminal
|
||||||
term_write("\e[2J\e[H", 7);
|
term_write("\e[2J\e[H", 7);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user