From 4ade8ff9e6c4185ebe45ecfe183668f28e1525b7 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 16 Sep 2023 20:48:28 +0200 Subject: kernel/amd64: add HPET support, slightly rework time handling --- src/kernel/arch/amd64/boot.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/kernel/arch/amd64/boot.c') diff --git a/src/kernel/arch/amd64/boot.c b/src/kernel/arch/amd64/boot.c index 337d23b..330a11e 100644 --- a/src/kernel/arch/amd64/boot.c +++ b/src/kernel/arch/amd64/boot.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -71,6 +72,12 @@ void kmain_early(void *mbi) { video_init(vid); pata_init(); + { + struct multiboot_tag_old_acpi *mod; + mod = mbi_tag(mbi, MULTIBOOT_TAG_TYPE_ACPI_OLD); + acpi_parse(mod->rsdp); + } + kprintf("pci...\n"); pci_init(); -- cgit v1.2.3