Commit 766364c 1 parent aded147 commit 766364c Copy full SHA for 766364c
File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ ArmGicSetInterruptPriority (
246
246
MmioAndThenOr32 (
247
247
GicDistributorBase + ARM_GIC_ICDIPR + (4 * RegOffset ),
248
248
~(0xff << RegShift ),
249
- Priority << RegShift
249
+ ( UINT32 )( Priority << RegShift ) // MU_CHANGE - CodeQL Change
250
250
);
251
251
} else {
252
252
GicCpuRedistributorBase = GicGetCpuRedistributorBase (
@@ -260,7 +260,7 @@ ArmGicSetInterruptPriority (
260
260
MmioAndThenOr32 (
261
261
IPRIORITY_ADDRESS (GicCpuRedistributorBase , RegOffset ),
262
262
~(0xff << RegShift ),
263
- Priority << RegShift
263
+ ( UINT32 )( Priority << RegShift ) // MU_CHANGE - CodeQL Change
264
264
);
265
265
}
266
266
}
Original file line number Diff line number Diff line change @@ -259,8 +259,17 @@ GetMmCompatibility (
259
259
260
260
MmVersion = MmVersionArgs .Arg0 ;
261
261
262
+ // MU_CHANGE - CodeQL Change - unsigned-comparison-zero
263
+ // Make MM_CALLER_MINOR_VER more restrictive. Rquire
264
+ // exact minor version match rather than >=.
265
+ // Add static_assert to check if/when verison change
266
+ // occurs.
267
+ STATIC_ASSERT (
268
+ MM_CALLER_MINOR_VER == 0 ,
269
+ "MM_CALLER_MINOR_VERSION has changed!"
270
+ );
262
271
if ((MM_MAJOR_VER (MmVersion ) == MM_CALLER_MAJOR_VER ) &&
263
- (MM_MINOR_VER (MmVersion ) > = MM_CALLER_MINOR_VER ))
272
+ (MM_MINOR_VER (MmVersion ) = = MM_CALLER_MINOR_VER ))
264
273
{
265
274
DEBUG ((
266
275
DEBUG_INFO ,
You can’t perform that action at this time.
0 commit comments