From 2d59766eb330b9d15a9bcbcd7e1695809fc099c5 Mon Sep 17 00:00:00 2001 From: EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> Date: Fri, 3 May 2024 03:39:47 -0400 Subject: renamed i386 to x86 --- kernel/arch/i386/multiboot.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 kernel/arch/i386/multiboot.cpp (limited to 'kernel/arch/i386/multiboot.cpp') diff --git a/kernel/arch/i386/multiboot.cpp b/kernel/arch/i386/multiboot.cpp deleted file mode 100644 index 9f3eedb..0000000 --- a/kernel/arch/i386/multiboot.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include -#include -#include "multiboot.h" -#include - -// gets the memory map and stuff -extern "C" void multiboot_main(multiboot_info_t* mbd, uint32_t magic) { - terminal_initialize(); - //printf("multiboot struc addr: %x\n", mbd); - if (magic != MULTIBOOT_BOOTLOADER_MAGIC) { - printf("Invalid multiboot magic number\n"); - abort(); - } - - // checks bit 6 to see if there's a valid memory map - if (!(mbd->flags >> 6 & 0x1)) { - printf("Invalid GRUB memory map\n"); - abort(); - } - - // loop through memory map and display the values - for (int i = 0; i < mbd->mmap_length; i += sizeof(multiboot_memory_map_t)) { - multiboot_memory_map_t* mmmt = (multiboot_memory_map_t*)(mbd->mmap_addr + i); - - printf("Start Addr: 0x%lx | Length: 0x%lx | Size: 0x%x | Type: %d\n", - mmmt->addr, mmmt->len, mmmt->size, mmmt->type); - //printf("%lx,%x,%x,%d\n", mmmt->size, mmmt->size, mmmt->size, mmmt->size); - } -} \ No newline at end of file -- cgit v1.2.3-70-g09d2