aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/acpi
diff options
context:
space:
mode:
authorMarvin Borner2020-05-13 21:28:56 +0200
committerMarvin Borner2020-05-13 22:12:41 +0200
commita9c7529dcca845d98192ece62be70f752972216b (patch)
tree666d49ceb411a669abe6191151b2238fd7156c30 /src/kernel/acpi
parente1a6ed079303dc7d218f1d5326a13b6755781271 (diff)
Replaced alloc.h with liballoc
And many more adaptions to the lib
Diffstat (limited to 'src/kernel/acpi')
-rw-r--r--src/kernel/acpi/acpi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kernel/acpi/acpi.c b/src/kernel/acpi/acpi.c
index 9feed08..6e1811c 100644
--- a/src/kernel/acpi/acpi.c
+++ b/src/kernel/acpi/acpi.c
@@ -32,11 +32,11 @@ 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));
+ struct sdt_header *header = (struct sdt_header *)malloc(sizeof(struct sdt_header));
+ rsdt = (struct rsdt *)malloc(sizeof(struct rsdt));
+ fadt = (struct fadt *)malloc(sizeof(struct fadt));
+ hpet = (struct hpet *)malloc(sizeof(struct hpet));
+ madt = (struct madt *)malloc(sizeof(struct madt));
if (strncmp(rsdp->signature, "RSD PTR ", 8) == 0) {
memcpy(rsdt, rsdp->rsdt_address, sizeof(struct rsdt) + 32);
@@ -72,7 +72,7 @@ void acpi_init(struct rsdp *rsdp)
} else {
warn("Wrong RSD signature!");
}
- kfree(header);
+ free(header);
}
void acpi_old_init(struct multiboot_tag_old_acpi *tag)