mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-23 09:02:11 +03:00
Remove eccessive memmap dumps and add stivale and stivale2 module loading feedback messages
This commit is contained in:
parent
de0f0da1c6
commit
0c5ccf14b4
BIN
limine.bin
BIN
limine.bin
Binary file not shown.
@ -141,7 +141,6 @@ static void sanitise_entries(void) {
|
||||
|
||||
if (memmap[i+1].type == MEMMAP_BOOTLOADER_RECLAIMABLE
|
||||
&& memmap[i+1].base == memmap[i].base + memmap[i].length) {
|
||||
print("%u: Merging %X %X to %X %X\n", i, memmap[i].base, memmap[i].length, memmap[i+1].base, memmap[i].length + memmap[i+1].length);
|
||||
memmap[i].length += memmap[i+1].length;
|
||||
|
||||
// Eradicate from memmap
|
||||
@ -159,9 +158,6 @@ struct e820_entry_t *get_memmap(size_t *entries) {
|
||||
|
||||
*entries = memmap_entries;
|
||||
|
||||
print("Memory map requested. Current layout:\n");
|
||||
print_memmap(memmap, memmap_entries);
|
||||
|
||||
return memmap;
|
||||
}
|
||||
|
||||
|
@ -139,6 +139,8 @@ void stivale_load(char *cmdline, int boot_drive) {
|
||||
((uint32_t)top_used_addr & ~((uint32_t)0xfff)) + 0x1000 :
|
||||
(uint32_t)top_used_addr);
|
||||
|
||||
print("stivale: Loading module `%s`...\n", module_file);
|
||||
|
||||
memmap_alloc_range((size_t)module_addr, f.size, 10);
|
||||
fread(&f, module_addr, 0, f.size);
|
||||
|
||||
|
@ -184,6 +184,8 @@ void stivale2_load(char *cmdline, int boot_drive) {
|
||||
((uint32_t)top_used_addr & ~((uint32_t)0xfff)) + 0x1000 :
|
||||
(uint32_t)top_used_addr);
|
||||
|
||||
print("stivale2: Loading module `%s`...\n", module_file);
|
||||
|
||||
memmap_alloc_range((size_t)module_addr, f.size, 0x1001);
|
||||
fread(&f, module_addr, 0, f.size);
|
||||
|
||||
|
@ -36,7 +36,4 @@ void init_e820(void) {
|
||||
|
||||
conv_mem_alloc(sizeof(struct e820_entry_t));
|
||||
}
|
||||
|
||||
print("E820 memory map:\n");
|
||||
print_memmap(e820_map, e820_entries);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user