vmem: Correctly map buffers > 16M
The previous implementation would generate pointers with the offset doubly-added, pointing to +16M after the correct address
This commit is contained in:
parent
b77a549bf4
commit
7d2cb5a7c0
|
@ -336,7 +336,7 @@ void _vmem_map_block(void* base,u32 start,u32 end,u32 mask)
|
|||
u32 j=0;
|
||||
for (u32 i=start;i<=end;i++)
|
||||
{
|
||||
_vmem_MemInfo_ptr[i]=&(((u8*)base)[j]) + FindMask(mask);
|
||||
_vmem_MemInfo_ptr[i]=&(((u8*)base)[j&mask]) + FindMask(mask) - (j & mask);
|
||||
j+=0x1000000;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue