- Timestamp:
- Dec 9, 2013 10:05:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r49635 r49855 1039 1039 #ifdef SUPDRV_WITH_MSR_PROBER 1040 1040 1041 #if 1 1042 /** @todo make this selectable. */ 1043 # define AMD_MSR_PASSCODE 0x9c5a203a 1044 #else 1045 # define ASMRdMsrEx(a, b, c) ASMRdMsr(a) 1046 # define ASMWrMsrEx(a, b, c) ASMWrMsr(a,c) 1047 #endif 1048 1049 1041 1050 /** 1042 1051 * Argument package used by supdrvOSMsrProberRead and supdrvOSMsrProberWrite. … … 1060 1069 __try 1061 1070 { 1062 pArgs->uValue = ASMRdMsr (pArgs->uMsr);1071 pArgs->uValue = ASMRdMsrEx(pArgs->uMsr, AMD_MSR_PASSCODE); 1063 1072 pArgs->fGp = false; 1064 1073 } … … 1106 1115 __try 1107 1116 { 1108 ASMWrMsr (pArgs->uMsr, pArgs->uValue);1117 ASMWrMsrEx(pArgs->uMsr, AMD_MSR_PASSCODE, pArgs->uValue); 1109 1118 pArgs->fGp = false; 1110 1119 } … … 1162 1171 __try 1163 1172 { 1164 uBefore = ASMRdMsr (uMsr);1173 uBefore = ASMRdMsrEx(uMsr, AMD_MSR_PASSCODE); 1165 1174 fBeforeGp = false; 1166 1175 } … … 1179 1188 __try 1180 1189 { 1181 ASMWrMsr (uMsr, uWritten);1190 ASMWrMsrEx(uMsr, AMD_MSR_PASSCODE, uWritten); 1182 1191 fModifyGp = false; 1183 1192 } … … 1190 1199 __try 1191 1200 { 1192 uAfter = ASMRdMsr (uMsr);1201 uAfter = ASMRdMsrEx(uMsr, AMD_MSR_PASSCODE); 1193 1202 fAfterGp = false; 1194 1203 } … … 1201 1210 __try 1202 1211 { 1203 ASMWrMsr (uMsr, uRestore);1212 ASMWrMsrEx(uMsr, AMD_MSR_PASSCODE, uRestore); 1204 1213 fRestoreGp = false; 1205 1214 }
Note:
See TracChangeset
for help on using the changeset viewer.