Clean up lapic code.
One initialization function now, not three. Use #defines instead of enums (consistent with other code, but sigh). Still boots in Bochs in SMP mode.
This commit is contained in:
parent
112873bc65
commit
b63bb0fd00
3 changed files with 115 additions and 169 deletions
4
defs.h
4
defs.h
|
|
@ -69,12 +69,12 @@ void kinit(void);
|
|||
|
||||
// lapic.c
|
||||
int cpu(void);
|
||||
extern uint* lapicaddr;
|
||||
extern volatile uint* lapic;
|
||||
void lapic_disableintr(void);
|
||||
void lapic_enableintr(void);
|
||||
void lapic_eoi(void);
|
||||
void lapic_init(int);
|
||||
void lapic_startap(uchar, int);
|
||||
void lapic_startap(uchar, uint);
|
||||
void lapic_timerinit(void);
|
||||
void lapic_timerintr(void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue