Made memory/addresses.h more organised

Also didn't need to add stdio.h to any files so that's good!
This commit is contained in:
2024-05-28 17:43:07 +02:00
parent ff07696dc6
commit 74c38342d7
6 changed files with 37 additions and 32 deletions
+3 -3
View File
@@ -1,4 +1,3 @@
#include <stdio.h> // TODO: Add stdio.h to every header that needs it
#include <interrupt/idt.h>
#include <interrupt/exceptions.h>
#include <interrupt/syscalls.h>
@@ -19,6 +18,7 @@
#include <sound/notes.h>
#include <ports/io.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
@@ -368,8 +368,8 @@ void printFiletable(char* ft) {
}
void printPhysicalMemmap() {
uint32_t entryCount = *(uint32_t*)SMAP_ADDRESS;
smapEntry_t* smapEntry = (smapEntry_t*)(SMAP_ADDRESS+4);
uint32_t entryCount = *(uint32_t*)SMAP_ENTRY_COUNT;
smapEntry_t* smapEntry = (smapEntry_t*)SMAP_ENTRIES;
for (uint32_t i = 0; i < entryCount; i++) {
print("Region ");