Remove unused argument from lapicinit (thanks to Peter Froehlich)
This commit is contained in:
parent
b08d16f61d
commit
70c555574a
3 changed files with 4 additions and 4 deletions
2
defs.h
2
defs.h
|
@ -74,7 +74,7 @@ void kbdintr(void);
|
|||
int cpunum(void);
|
||||
extern volatile uint* lapic;
|
||||
void lapiceoi(void);
|
||||
void lapicinit(int);
|
||||
void lapicinit(void);
|
||||
void lapicstartap(uchar, uint);
|
||||
void microdelay(int);
|
||||
|
||||
|
|
2
lapic.c
2
lapic.c
|
@ -50,7 +50,7 @@ lapicw(int index, int value)
|
|||
//PAGEBREAK!
|
||||
|
||||
void
|
||||
lapicinit(int c)
|
||||
lapicinit(void)
|
||||
{
|
||||
if(!lapic)
|
||||
return;
|
||||
|
|
4
main.c
4
main.c
|
@ -20,7 +20,7 @@ main(void)
|
|||
kinit1(end, P2V(4*1024*1024)); // phys page allocator
|
||||
kvmalloc(); // kernel page table
|
||||
mpinit(); // collect info about this machine
|
||||
lapicinit(mpbcpu());
|
||||
lapicinit();
|
||||
seginit(); // set up segments
|
||||
cprintf("\ncpu%d: starting xv6\n\n", cpu->id);
|
||||
picinit(); // interrupt controller
|
||||
|
@ -48,7 +48,7 @@ mpenter(void)
|
|||
{
|
||||
switchkvm();
|
||||
seginit();
|
||||
lapicinit(cpunum());
|
||||
lapicinit();
|
||||
mpmain();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue