diff options
author | ian <ian> | 2023-08-17 03:29:43 +0000 |
---|---|---|
committer | ian <ian> | 2023-08-17 03:29:43 +0000 |
commit | 8bde9e4f37df7cc6b60d818363e5981e46356b3d (patch) | |
tree | f10c1e46845e60e6e6fa3c481ffb946acef833a1 /sys/arch/amd64 | |
parent | 01ed65f720a32e35d12c7f4d68297e3599157846 (diff) |
kernel/amd64: machdep: Refactor attribute usage
Use __weak only in headers
git-svn-id: https://svn.vegaa.systems/svn/vega-Vega/trunk@30 a8a8aea2-181d-ee11-89e8-15fd0e089fc4
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/machdep.c | 3 |
1 files changed, 2 insertions, 1 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); |