fix compilation for 32-bit

This commit is contained in:
Dark Byte 2021-05-30 15:40:02 +02:00
parent c29b7c0c02
commit 894c7dc11a
4 changed files with 18 additions and 7 deletions

View File

@ -22,7 +22,7 @@ uses
zstream, luafile, disassemblerComments, commonTypeDefs, lazutf8, betterControls;
var CurrentTableVersion: dword=36;
var CurrentTableVersion: dword=37;
lastLoadedTableVersion: dword;
iscetrainer: integer=0;

View File

@ -899,7 +899,8 @@ begin
mov r,rax
{$else}
mov eax,vmcallinfo
mov edx,level1pass
mov edx,[vmx_password1]
mov ecx,[vmx_password3]
vmmcall //should raise an UD if the cpu does not support it (or the password is wrong)
mov r,eax
{$endif}
@ -932,7 +933,8 @@ begin
mov r,rax
{$else}
mov eax,vmcallinfo
mov edx,level1pass
mov edx,[vmx_password1]
mov ecx,[vmx_password3]
vmmcall //should raise an UD if the cpu does not support it (or the password is wrong)
mov r,eax
mov r2,edx
@ -970,7 +972,8 @@ begin
mov r,rax
{$else}
mov eax,vmcallinfo
mov edx,level1pass
mov edx,[vmx_password1]
mov ecx,[vmx_password3]
vmcall //should raise an UD if the cpu does not support it (or the password is wrong)
mov r,eax
mov r2,edx
@ -1006,8 +1009,8 @@ begin
mov r,rax
{$else}
mov eax,vmcallinfo
mov edx,level1pass
mov ecx,level3pass
mov edx,[vmx_password1]
mov ecx,[vmx_password3]
vmcall //should raise an UD if the cpu does not support it (or the password is wrong)
mov r,eax
{$endif}

View File

@ -3,7 +3,7 @@
#define dbkversion 2000026
#define dbkversion 2000027
#endif

View File

@ -720,6 +720,14 @@ BOOL walkPagingLayout(PEPROCESS PEProcess, UINT_PTR MaxAddress, PRESENTPAGECALLB
continue;
}
if (PPDPE->PS) //some systems have 1GB page support. But not sure windows uses these
{
DbgPrint("----->%llx is a 1GB range", currentAddress);
OnPresentPage(currentAddress, currentAddress + 0x40000000 - 1, PPDPE);
currentAddress += 0x40000000;
continue;
}
if (PPDE->P == 0)
{