Started implementing the virtual file system

- The FAT command is no longer available
- At Startup the FileSystem initialise funciton
is called, it should execute the same code as the FAT command did.
- ACPI::initialise is commented out because it causes a Exception
This commit is contained in:
2023-02-17 21:52:03 +01:00
parent 133c16cae7
commit 490529099b
10 changed files with 429 additions and 237 deletions

View File

@ -9,6 +9,7 @@ void ACPI::initialize(){
// Find the Root System Description Pointer
ACPI::rsd_ptr = FindRSD();
printRSD(rsd_ptr);
// Get the Root System Description Table
ACPI::rsd_table = getRSDT(rsd_ptr);
ACPI::rsd_table = getRSDT((RSDPTR*)((uint32_t)rsd_ptr + 0xC00000000));
}

View File

@ -18,17 +18,16 @@ void printRSD(RSDPTR* rsd){
}
RSDPTR* FindRSD(){
char* memory_byte = (char*) 0x000f2e14;
char* memory_byte = (char*) 0xC00f2e14;
const void* string = "RSD PTR ";
for( ; (uint32_t) memory_byte < 0x0100000; memory_byte+=10){
for( ; (uint32_t) memory_byte < 0xC0100000; memory_byte+=10){
if( memcmp(memory_byte , string , 8 ) == 0 ) {
printf("RSD PTR found at 0x%x !\n", memory_byte);
break;
}
}
printRSD((RSDPTR*) memory_byte);
return (RSDPTR*) memory_byte;
}