summaryrefslogtreecommitdiff
path: root/mp.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2016-08-24 13:40:06 -0400
committerRobert Morris <[email protected]>2016-08-24 13:40:06 -0400
commita7c03bd91490a10383b7241e41f79e57a09cf212 (patch)
tree912c7602a573f0fd1e676771f082018b6a48b56d /mp.c
parent7a77375d64675a6d05b47531ebb24205a3f36483 (diff)
downloadxv6-labs-a7c03bd91490a10383b7241e41f79e57a09cf212.tar.gz
xv6-labs-a7c03bd91490a10383b7241e41f79e57a09cf212.tar.bz2
xv6-labs-a7c03bd91490a10383b7241e41f79e57a09cf212.zip
p2v -> P2V
Diffstat (limited to 'mp.c')
-rw-r--r--mp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mp.c b/mp.c
index 224b1bd..977a823 100644
--- a/mp.c
+++ b/mp.c
@@ -33,7 +33,7 @@ mpsearch1(uint a, int len)
{
uchar *e, *p, *addr;
- addr = p2v(a);
+ addr = P2V(a);
e = addr+len;
for(p = addr; p < e; p += sizeof(struct mp))
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
@@ -78,7 +78,7 @@ mpconfig(struct mp **pmp)
if((mp = mpsearch()) == 0 || mp->physaddr == 0)
return 0;
- conf = (struct mpconf*) p2v((uint) mp->physaddr);
+ conf = (struct mpconf*) P2V((uint) mp->physaddr);
if(memcmp(conf, "PCMP", 4) != 0)
return 0;
if(conf->version != 1 && conf->version != 4)