x86_64: more local and i/o apic configuration

This commit is contained in:
2023-03-20 20:21:44 +00:00
parent 8e9127cd6a
commit a4d850cc03
6 changed files with 71 additions and 11 deletions

View File

@@ -66,5 +66,6 @@ extern int idt_init(struct idt_ptr *idtp);
extern int idt_load(struct idt_ptr *idtp);
extern void hook_irq(irq_vector_t vec, irq_hook_t *hook);
extern void unhook_irq(irq_vector_t vec, irq_hook_t *hook);
#endif

View File

@@ -1,6 +1,8 @@
#ifndef ARCH_PIT_H_
#define ARCH_PIT_H_
extern void pit_init(unsigned int hz);
extern void pit_start(unsigned int hz);
extern void pit_stop(void);
extern void pit_wait(unsigned int ticks);
#endif