diff options
Diffstat (limited to 'sys/arch/amd64/amd64/machdep.c')
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index 07f16fc..af3918d 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -29,10 +29,12 @@ #include <sys/machdep.h> #include <sys/cdefs.h> +#include <sys/panic.h> #include <machine/trap.h> #include <machine/idt.h> #include <machine/gdt.h> #include <machine/ioapic.h> +#include <machine/hpet.h> #include <machine/lapic.h> #include <machine/tss.h> #include <machine/spectre.h> @@ -94,6 +96,16 @@ serial_dbgch(char c) uart8250_write(c); } +void +chips_init(void) +{ + /* Hyra requires HPET on x86_64 */ + if (hpet_init() != 0) + panic("Machine does not support HPET!\n"); + + hpet_init(); +} + /* * Things set up before processor_init() call... */ |