Moved reading file from disk to its own super visor terminal command
- Updated gdt assembly - Updated Interrupt service request handlers - Improved virtual memory manager - NOTE: we're dependent on identity mappings for the heap to work
This commit is contained in:
14
source/kernel/drivers/acpi/acpi.cpp
Normal file
14
source/kernel/drivers/acpi/acpi.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#include "acpi.h"
|
||||
RSDPTR* ACPI::rsd_ptr;
|
||||
RSDT* ACPI::rsd_table;
|
||||
|
||||
|
||||
|
||||
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);
|
||||
}
|
13
source/kernel/drivers/acpi/acpi.h
Normal file
13
source/kernel/drivers/acpi/acpi.h
Normal file
@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
#include "rsdp.h"
|
||||
class ACPI {
|
||||
public:
|
||||
static void initialize();
|
||||
|
||||
// In the future ACPI might start
|
||||
// doing more systems initialization
|
||||
|
||||
private:
|
||||
static RSDPTR* rsd_ptr;
|
||||
static RSDT* rsd_table;
|
||||
};
|
@ -27,8 +27,6 @@ struct RSDT{
|
||||
uint32_t PointerToSDT[]; // Length of array : (header.Length - sizeof(header))/ 4
|
||||
}__attribute__((packed));
|
||||
|
||||
|
||||
//NOTE: only scans EBDA enough to find RSD PTR in QEMU
|
||||
RSDPTR* FindRSD();
|
||||
|
||||
void printRSD(RSDPTR* rsd);
|
||||
|
Reference in New Issue
Block a user