bcm64: use 64-bit uvlong physical address in vmap()
This commit is contained in:
parent
3bcc34f276
commit
c7d9da8f5a
2 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ extern void kmapinval(void);
|
|||
extern KMap *kmap(Page*);
|
||||
extern void kunmap(KMap*);
|
||||
extern uintptr mmukmap(uintptr, uintptr, usize);
|
||||
extern void* vmap(uintptr, int);
|
||||
extern void* vmap(uvlong, int);
|
||||
extern void vunmap(void*, int);
|
||||
|
||||
extern void mmu0init(uintptr*);
|
||||
|
|
|
@ -319,10 +319,10 @@ mmukmap(uintptr va, uintptr pa, usize size)
|
|||
}
|
||||
|
||||
void*
|
||||
vmap(uintptr pa, int size)
|
||||
vmap(uvlong pa, int size)
|
||||
{
|
||||
static uintptr base = VMAP;
|
||||
uintptr pe = pa + size;
|
||||
uvlong pe = pa + size;
|
||||
uintptr va;
|
||||
|
||||
va = base;
|
||||
|
|
Loading…
Reference in a new issue