From 0c6e42f713052f23d7d62dc3c5652e79d9fc77e2 Mon Sep 17 00:00:00 2001 From: Jake Holtham Date: Wed, 9 Jul 2025 17:44:59 -0400 Subject: [PATCH] Added physical memory file lol --- include/physmem.h | 5 +++++ src/main.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 include/physmem.h diff --git a/include/physmem.h b/include/physmem.h new file mode 100644 index 0000000..0af995f --- /dev/null +++ b/include/physmem.h @@ -0,0 +1,5 @@ +#ifndef PHYSMEM_H +#define PHYSMEM_H + + +#endif diff --git a/src/main.c b/src/main.c index 9035a4f..2d1b93f 100644 --- a/src/main.c +++ b/src/main.c @@ -62,7 +62,11 @@ void kern_main(uint32_t multiboot_magic, mb_info_t* multiboot_info) entry = (mb_mmap_entry_t*)((int)entry + entry->entry_size + sizeof(entry->entry_size))) { printf(default_output,"__MMAP_ENTRY__:\nSTART_ADDR:%X\nSIZE:%X\nTYPE:%u\n",(uint32_t)entry->addr, (uint32_t)entry->mem_size, entry->type); - + if(entry->type != 1) + continue; + + + } }