vmx(1): fix translateflat on 64-bit
This commit is contained in:
parent
cabfa4e916
commit
5883986336
1 changed files with 3 additions and 2 deletions
|
@ -16,10 +16,11 @@ struct VMemReq {
|
|||
static uintptr
|
||||
translateflat(uintptr va, uintptr *pa, uintptr)
|
||||
{
|
||||
if(sizeof(uintptr) != 4 && va >> 32 != 0) return 0;
|
||||
*pa = va;
|
||||
if(va == 0)
|
||||
return -1;
|
||||
return 0;
|
||||
return 0xFFFFFFFFUL;
|
||||
return -va;
|
||||
}
|
||||
|
||||
static uintptr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue