Added comments to ConnectWindowsTimersToThunkTable

Specifically that reading KeSystemTime directly will mean
HostSystemTimeDelta is not added (as done in KeQuerySystemTime)
This commit is contained in:
PatrickvL 2016-12-10 20:01:45 +01:00
parent 2e6e78acc2
commit d9040173ec
1 changed files with 4 additions and 0 deletions

View File

@ -476,7 +476,11 @@ void ConnectWindowsTimersToThunkTable()
// time on updating them ourselves, and still get highly accurate timers!
// See http://www.dcl.hpi.uni-potsdam.de/research/WRK/2007/08/getting-os-information-the-kuser_shared_data-structure/
// Point Xbox KeInterruptTime to host InterruptTime:
CxbxKrnl_KernelThunkTable[120] = (uint32)&(USER_SHARED_DATA->InterruptTime);
// Point Xbox KeSystemTime to host SystemTime; If read directly (thus skipping
// KeQuerySystemTime), this value is not adjusted with HostSystemTimeDelta!
CxbxKrnl_KernelThunkTable[154] = (uint32)&(USER_SHARED_DATA->SystemTime);
// Note that we can't do the same for TickCount, as that timer