2023-02-08 13:07:44 +00:00
|
|
|
#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);
|
2023-02-17 20:52:03 +00:00
|
|
|
|
2023-02-08 13:07:44 +00:00
|
|
|
// Get the Root System Description Table
|
2023-02-17 20:52:03 +00:00
|
|
|
ACPI::rsd_table = getRSDT((RSDPTR*)((uint32_t)rsd_ptr + 0xC00000000));
|
2023-02-08 13:07:44 +00:00
|
|
|
}
|