irq: enable LAPIC timer
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
parent
dfed938383
commit
f03a30e07e
6 changed files with 29 additions and 5 deletions
|
|
@ -26,7 +26,6 @@
|
|||
#define LAPIC_ERR 0x280
|
||||
#define LAPIC_CMCI 0x2F0
|
||||
#define LAPIC_ICR 0x300
|
||||
#define LAPIC_LVT_TIMER 0x320
|
||||
#define LAPIC_THERMAL 0x330
|
||||
#define LAPIC_LVT_PERF_MON_COUNT 0x340
|
||||
#define LAPIC_LVT_LINT0 0x350
|
||||
|
|
@ -34,7 +33,10 @@
|
|||
#define LAPIC_LVT_ERR 0x370
|
||||
#define LAPIC_INIT_COUNT 0x380
|
||||
#define LAPIC_CUR_COUNT 0x390
|
||||
#define LAPIC_DIVIDE_CONFIG 0x3E0
|
||||
|
||||
#define LAPIC_TIMER 0x320
|
||||
#define LAPIC_TIMER_DIV 0x3E0
|
||||
#define LAPIC_TIMER_INIT_COUNT 0x380
|
||||
|
||||
#define MSR_IA32_APIC_BASE 0x1B
|
||||
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ struct proc *proc_find(pid_t pid);
|
|||
void proc_save_state();
|
||||
void proc_set_current(pid_t pid);
|
||||
void proc_init(unsigned num_cpus);
|
||||
void trap_sched();
|
||||
void schedule();
|
||||
void syscall_block();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue