Commit 88ada4d 1 parent 0a62573 commit 88ada4d Copy full SHA for 88ada4d
File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,6 @@ UINT32 _gPcd_FixedAtBuild_PcdImageLoaderAlignmentPolicy = 0xFFFFFFF
48
48
UINT32 _gPcd_FixedAtBuild_PcdImageLoaderRelocTypePolicy = 0x00 ;
49
49
BOOLEAN _gPcd_FeatureFlag_PcdFatReadOnlyMode = _PCD_VALUE_PcdFatReadOnlyMode ;
50
50
UINT32 _gPcd_BinaryPatch_PcdSerialRegisterStride = 0 ;
51
- UINT8 _gPcd_FixedAtBuild_PcdUefiImageFormatSupportNonFv = 0x00 ;
51
+ UINT8 _gPcd_FixedAtBuild_PcdUefiImageFormatSupportNonFv = 0x02 ;
52
52
UINT8 _gPcd_FixedAtBuild_PcdUefiImageFormatSupportFv = 0x03 ;
53
- UINT32 _gPcd_FixedAtBuild_PcdImageProtectionPolicy = 0x00 ;
53
+ UINT32 _gPcd_FixedAtBuild_PcdImageProtectionPolicy = 0x07 ;
Original file line number Diff line number Diff line change @@ -189,6 +189,12 @@ ENTRY_POINT (
189
189
PcdGet32 (PcdFixedDebugPrintErrorLevel ) |= DEBUG_INFO ;
190
190
PcdGet32 (PcdDebugPrintErrorLevel ) |= DEBUG_INFO ;
191
191
192
+ //
193
+ // Match PcdImageProtectionPolicy defined in OpenCore.dsc.
194
+ // Apple images (supplied by user) may be not 4KBi aligned.
195
+ //
196
+ PcdGet32 (PcdImageProtectionPolicy ) = 0x03 ;
197
+
192
198
//
193
199
// Process args or print usage.
194
200
//
Original file line number Diff line number Diff line change @@ -291,6 +291,11 @@ ENTRY_POINT (
291
291
PcdGet32 (PcdFixedDebugPrintErrorLevel ) |= DEBUG_INFO ;
292
292
PcdGet32 (PcdDebugPrintErrorLevel ) |= DEBUG_INFO ;
293
293
294
+ //
295
+ // Images may be not 4KBi aligned.
296
+ //
297
+ PcdGet32 (PcdImageProtectionPolicy ) = 0x00 ;
298
+
294
299
// PcdGet32 (PcdFixedDebugPrintErrorLevel) |= DEBUG_POOL | DEBUG_PAGE;
295
300
// PcdGet32 (PcdDebugPrintErrorLevel) |= DEBUG_POOL | DEBUG_PAGE;
296
301
You can’t perform that action at this time.
0 commit comments