nits
This commit is contained in:
parent
da94233784
commit
112873bc65
1 changed files with 6 additions and 6 deletions
8
mp.c
8
mp.c
|
@ -114,7 +114,7 @@ mp_detect(void)
|
||||||
void
|
void
|
||||||
mp_init(void)
|
mp_init(void)
|
||||||
{
|
{
|
||||||
int i, r;
|
int i;
|
||||||
uchar *p, *e;
|
uchar *p, *e;
|
||||||
struct mpctb *mpctb;
|
struct mpctb *mpctb;
|
||||||
struct mppe *proc;
|
struct mppe *proc;
|
||||||
|
@ -133,9 +133,9 @@ mp_init(void)
|
||||||
// is guaranteed to be in order such that only one pass is necessary.
|
// is guaranteed to be in order such that only one pass is necessary.
|
||||||
|
|
||||||
mpctb = (struct mpctb*)mp->physaddr;
|
mpctb = (struct mpctb*)mp->physaddr;
|
||||||
lapicaddr = (uint*) mpctb->lapicaddr;
|
lapic = (uint*)mpctb->lapicaddr;
|
||||||
p = ((uchar*)mpctb)+sizeof(struct mpctb);
|
p = (uchar*)mpctb + sizeof(*mpctb);
|
||||||
e = ((uchar*)mpctb)+mpctb->length;
|
e = (uchar*)mpctb + mpctb->length;
|
||||||
|
|
||||||
while(p < e) {
|
while(p < e) {
|
||||||
switch(*p){
|
switch(*p){
|
||||||
|
|
Loading…
Reference in a new issue