mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
db55f99e23
This commit adds uACPI as a submodule and removes all handwritten table parsing code as well as struct definitions, since they now work via uACPI. There's also now an ability to shut down by using the power button.
13 lines
258 B
C
13 lines
258 B
C
#include <limine.h>
|
|
#include <kernel/pmm.h>
|
|
#include <stdint.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);
|
|
}
|