mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 14:08:21 +00:00
acpi: bump to latest uACPI master
This commit is contained in:
@@ -2,11 +2,14 @@
|
||||
#include <kernel/pmm.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <uacpi/kernel_api.h>
|
||||
|
||||
static volatile struct limine_rsdp_request rsdpreq = {
|
||||
.id = LIMINE_RSDP_REQUEST,
|
||||
.revision = 0
|
||||
};
|
||||
|
||||
uintptr_t arch_get_rsdp(void) {
|
||||
return (uintptr_t)FROM_HHDM(rsdpreq.response->address);
|
||||
uacpi_status uacpi_kernel_get_rsdp(uacpi_phys_addr *outrsdp) {
|
||||
*outrsdp = (uintptr_t)FROM_HHDM(rsdpreq.response->address);
|
||||
return UACPI_STATUS_OK;
|
||||
}
|
||||
|
||||
@@ -138,5 +138,6 @@ time_t arch_hpet_init() {
|
||||
|
||||
write64(HPET_REG_CONFIG, 1 + ((type == TYPE_LEGACY) ? 2 : 0));
|
||||
|
||||
uacpi_table_unref(&tbl);
|
||||
return ticksperus;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user