summaryrefslogtreecommitdiff
path: root/sys/src/9/bcm/mmu.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-04-11 13:51:38 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2019-04-11 13:51:38 +0200
commit37d36fdd7f441aa184c4051d02e50e9e770f20f8 (patch)
treeddcf8928dfcdebf4f029509c6bf2c62a8d294c1d /sys/src/9/bcm/mmu.c
parent753fa51b77869eadcc27c00df34f09c3c9239fe2 (diff)
kernel: get rid of PTR2UINT() and UINT2PTR() macros
Diffstat (limited to 'sys/src/9/bcm/mmu.c')
-rw-r--r--sys/src/9/bcm/mmu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/9/bcm/mmu.c b/sys/src/9/bcm/mmu.c
index 431c2bff9..9d2e3709c 100644
--- a/sys/src/9/bcm/mmu.c
+++ b/sys/src/9/bcm/mmu.c
@@ -91,7 +91,7 @@ mmul2empty(Proc* proc, int clear)
l2 = &proc->mmul2;
for(page = *l2; page != nil; page = page->next){
if(clear)
- memset(UINT2PTR(page->va), 0, L2size);
+ memset((void*)page->va, 0, L2size);
l1[page->daddr] = Fault;
l2 = &page->next;
}
@@ -241,7 +241,7 @@ putmmu(uintptr va, uintptr pa, Page* page)
m->mmul1hi = L1hi - x;
}
}
- pte = UINT2PTR(KADDR(PPN(*l1)));
+ pte = KADDR(PPN(*l1));
/* protection bits are
* PTERONLY|PTEVALID;
@@ -283,7 +283,7 @@ mmuuncache(void* v, usize size)
* Uncache a Section, must already be
* valid in the MMU.
*/
- va = PTR2UINT(v);
+ va = (uintptr)v;
assert(!(va & (1*MiB-1)) && size == 1*MiB);
x = L1X(va);