summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/boot.c
diff options
context:
space:
mode:
authordzwdz2023-09-16 20:48:28 +0200
committerdzwdz2023-09-17 17:13:50 +0200
commit4ade8ff9e6c4185ebe45ecfe183668f28e1525b7 (patch)
tree26fdfa0659f4a32fc3d187658c2d8d457b272578 /src/kernel/arch/amd64/boot.c
parent458978e7b8a6d50566fc8b68558f76f6b0465c52 (diff)
kernel/amd64: add HPET support, slightly rework time handling
Diffstat (limited to 'src/kernel/arch/amd64/boot.c')
-rw-r--r--src/kernel/arch/amd64/boot.c7
1 files changed, 7 insertions, 0 deletions
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 <kernel/arch/amd64/3rdparty/multiboot2.h>
+#include <kernel/arch/amd64/acpi.h>
#include <kernel/arch/amd64/boot.h>
#include <kernel/arch/amd64/driver/driver.h>
#include <kernel/arch/amd64/driver/serial.h>
@@ -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();