Skip to content

Commit

Permalink
x86: Print correct HPET address
Browse files Browse the repository at this point in the history
  • Loading branch information
marv7000 committed Nov 28, 2024
1 parent f605130 commit 7227cb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/arch/x86_64/system/acpi/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ static void hpet_setup(PhysAddr addr)
// Enable timer.
hpet.regs->configuration |= 1;

acpi_log("Enabled HPET.\n");

clock_register(&hpet.cs);
}

Expand All @@ -45,7 +47,7 @@ void hpet_init()
AcpiHpet* hpet_table = acpi_find_table("HPET", 0);
kassert(hpet_table, "ACPI tables didn't contain an HPET table!");

acpi_log("HPET at 0x%p\n", hpet_table->address);
acpi_log("HPET at 0x%p\n", hpet_table->address.address);

hpet_setup(hpet_table->address.address);
}

0 comments on commit 7227cb3

Please sign in to comment.