diff options
Diffstat (limited to 'src/kernel/acpi/acpi.c')
-rw-r--r-- | src/kernel/acpi/acpi.c | 12 |
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) |