bcm64: use 64-bit uvlong physical address in vmap()

This commit is contained in:
cinap_lenrek 2020-06-06 15:01:20 +02:00
parent 3bcc34f276
commit c7d9da8f5a
2 changed files with 3 additions and 3 deletions

View file

@ -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*);

View file

@ -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;