bug: vtop incorrect bitmask
- Fix for issue #32 in which the incorrect bitmask ($FFFFFF) is used where $3FFFFF should be used instead. (24 vs 22 bits).
This commit is contained in:
1 parent
2ad0ae8420
commit
76c419336e
1 file changed
+1
-1
@@ -190,7 +190,7 @@ begin
|
|||||||
push_trace('vmemorymanager.vtop');
|
push_trace('vmemorymanager.vtop');
|
||||||
idx:= address SHR 22;
|
idx:= address SHR 22;
|
||||||
paddress:= uint32(KERNEL_PAGE_DIRECTORY^[idx].address) SHL 12;
|
paddress:= uint32(KERNEL_PAGE_DIRECTORY^[idx].address) SHL 12;
|
||||||
loadd:= address AND $FFFFFF;
|
loadd:= address AND $3FFFFF;
|
||||||
vtop:= paddress + loadd;
|
vtop:= paddress + loadd;
|
||||||
pop_trace;
|
pop_trace;
|
||||||
end;
|
end;
|
||||||
|
|||||||
Reference in new issue
Block a user