diff options
author | Marvin Borner | 2020-04-29 19:21:29 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-29 19:21:29 +0200 |
commit | 4546c75d685475d8b9f215b588364e1d1bbd0b79 (patch) | |
tree | 2077f72ad46dfe877f7febdd0692edc139fd7937 /src/kernel/acpi | |
parent | 396d7d303d3bf0e796d0c817883ec1dec928352a (diff) |
MUCH work in libc
Also cleaned up some syscalls etc
Diffstat (limited to 'src/kernel/acpi')
-rw-r--r-- | src/kernel/acpi/acpi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/kernel/acpi/acpi.c b/src/kernel/acpi/acpi.c index 3e07171..1fced51 100644 --- a/src/kernel/acpi/acpi.c +++ b/src/kernel/acpi/acpi.c @@ -29,13 +29,15 @@ int check_sum(struct sdt_header *header) void acpi_init(struct rsdp *rsdp) { + // TODO: Fix ACPI table discovering (HPET & MADT missing) + // TODO: Fix ACPI breaking VESA (why?!) + struct sdt_header *header = (struct sdt_header *)kmalloc(sizeof(struct sdt_header)); rsdt = (struct rsdt *)kmalloc(sizeof(struct rsdt)); fadt = (struct fadt *)kmalloc(sizeof(struct fadt)); hpet = (struct hpet *)kmalloc(sizeof(struct hpet)); madt = (struct madt *)kmalloc(sizeof(struct madt)); - // TODO: Fix ACPI table discovering (HPET & MADT missing) if (strncmp(rsdp->signature, "RSD PTR ", 8) == 0) { memcpy(rsdt, rsdp->rsdt_address, sizeof(struct rsdt) + 32); debug("Found RSDT"); @@ -75,12 +77,12 @@ void acpi_init(struct rsdp *rsdp) void acpi_old_init(struct multiboot_tag_old_acpi *tag) { - acpi_init((struct rsdp *)tag->rsdp); + // acpi_init((struct rsdp *)tag->rsdp); } void acpi_new_init(struct multiboot_tag_new_acpi *tag) { - acpi_init((struct rsdp *)tag->rsdp); + // acpi_init((struct rsdp *)tag->rsdp); } void acpi_poweroff() |