summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/amd64/machdep.c3
-rw-r--r--sys/include/sys/machdep.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/amd64/machdep.c b/sys/arch/amd64/machdep.c
index 8203a07..902dd5e 100644
--- a/sys/arch/amd64/machdep.c
+++ b/sys/arch/amd64/machdep.c
@@ -34,6 +34,7 @@
#include <machine/trap.h>
#include <machine/idt.h>
#include <machine/gdt.h>
+#include <machine/pic.h>
#define ISR(func) ((uintptr_t)func)
@@ -60,7 +61,7 @@ processor_halt(void)
__ASMV("cli; hlt");
}
-__weak void
+void
processor_init(void)
{
gdt_load(&g_gdtr);
diff --git a/sys/include/sys/machdep.h b/sys/include/sys/machdep.h
index b9a6221..bd914bb 100644
--- a/sys/include/sys/machdep.h
+++ b/sys/include/sys/machdep.h
@@ -37,8 +37,8 @@
#if defined(_KERNEL)
-void processor_init(void);
-void processor_halt(void);
+__weak void processor_init(void);
+__weak void processor_halt(void);
#endif /* defined(_KERNEL) */
#endif /* !_SYS_MACHDEP_H_ */