diff options
author | Robert Morris <[email protected]> | 2016-08-24 13:40:06 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2016-08-24 13:40:06 -0400 |
commit | a7c03bd91490a10383b7241e41f79e57a09cf212 (patch) | |
tree | 912c7602a573f0fd1e676771f082018b6a48b56d /mp.c | |
parent | 7a77375d64675a6d05b47531ebb24205a3f36483 (diff) | |
download | xv6-labs-a7c03bd91490a10383b7241e41f79e57a09cf212.tar.gz xv6-labs-a7c03bd91490a10383b7241e41f79e57a09cf212.tar.bz2 xv6-labs-a7c03bd91490a10383b7241e41f79e57a09cf212.zip |
p2v -> P2V
Diffstat (limited to 'mp.c')
-rw-r--r-- | mp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |