revert apic change

this is now on its own branch and will be worked on separately from the
main focus of this project, which is to get a VFS and into userspace as
soon as possible
This commit is contained in:
Michael Shaw 2023-04-22 14:46:40 -04:00
commit 9cf4b71559
5 changed files with 7 additions and 20 deletions

View file

@ -1,5 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <kernel/mem.h>
#include <kernel/acpi.h>
#include <dev/apic.h>
@ -20,7 +19,7 @@ void rsdt_print(struct rsdt *rsdt)
for (int i = 0; i < num_sdt; i++) {
/* 2 steps silences warning */
uint64_t sdt_addr = (uint64_t)rsdt->sdt[i] | hhdm_start;
uint64_t sdt_addr = (uint64_t)rsdt->sdt[i];
struct acpi_sdt_header *h = (struct acpi_sdt_header *)sdt_addr;
if (!(memcmp(h->signature, "APIC", 4))) {
@ -38,7 +37,7 @@ void acpi_init()
rsdp = (struct rsdp *)rsdp_req.response->address;
/* 2 steps silences warning */
uint64_t rsdt_addr = (uint64_t)rsdp->rsdt_addr | hhdm_start;
uint64_t rsdt_addr = (uint64_t)rsdp->rsdt_addr;
struct rsdt *rsdt = (struct rsdt *)rsdt_addr;
rsdt_print(rsdt);