cpu: move apic to x86_64
This commit is contained in:
parent
edbb5d106d
commit
033d85bd2f
9 changed files with 15 additions and 9 deletions
|
@ -7,6 +7,8 @@
|
|||
|
||||
#if defined (__x86_64__)
|
||||
|
||||
#include "arch/x86_64/lapic.h"
|
||||
#include "arch/x86_64/ioapic.h"
|
||||
#include <arch/x86_64/gdt.h>
|
||||
#include <arch/x86_64/idt.h>
|
||||
#include <arch/cpu.h>
|
||||
|
@ -33,6 +35,11 @@ void cpu_enable_ints(int enabled) {
|
|||
if (enabled) asm("sti"); else asm("cli");
|
||||
}
|
||||
|
||||
void cpu_init_apic() {
|
||||
lapic_init();
|
||||
ioapic_init();
|
||||
}
|
||||
|
||||
void hcf() {
|
||||
asm ("cli");
|
||||
for (;;) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue