mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
Ring3: Refactoring.
This commit is contained in:
parent
3dc02534db
commit
983649444e
@ -99,6 +99,9 @@ SetUefiImageProtectionAttributes (
|
|||||||
UEFI_IMAGE_RECORD_SEGMENT *ImageRecordSegment;
|
UEFI_IMAGE_RECORD_SEGMENT *ImageRecordSegment;
|
||||||
UINTN SectionAddress;
|
UINTN SectionAddress;
|
||||||
UINT32 Index;
|
UINT32 Index;
|
||||||
|
UINT32 Attribute;
|
||||||
|
|
||||||
|
Attribute = IsUser ? EFI_MEMORY_USER : 0;
|
||||||
|
|
||||||
SectionAddress = ImageRecord->StartAddress;
|
SectionAddress = ImageRecord->StartAddress;
|
||||||
for (Index = 0; Index < ImageRecord->NumSegments; Index++) {
|
for (Index = 0; Index < ImageRecord->NumSegments; Index++) {
|
||||||
@ -106,7 +109,7 @@ SetUefiImageProtectionAttributes (
|
|||||||
SetUefiImageMemoryAttributes (
|
SetUefiImageMemoryAttributes (
|
||||||
SectionAddress,
|
SectionAddress,
|
||||||
ImageRecordSegment->Size,
|
ImageRecordSegment->Size,
|
||||||
IsUser ? ImageRecordSegment->Attributes | (UINT32)EFI_MEMORY_USER : ImageRecordSegment->Attributes
|
ImageRecordSegment->Attributes | Attribute
|
||||||
);
|
);
|
||||||
|
|
||||||
SectionAddress += ImageRecordSegment->Size;
|
SectionAddress += ImageRecordSegment->Size;
|
||||||
|
@ -5683,6 +5683,7 @@ typedef struct {
|
|||||||
UINT16 Reserved_98;
|
UINT16 Reserved_98;
|
||||||
UINT16 T;
|
UINT16 T;
|
||||||
UINT16 IOMapBaseAddress;
|
UINT16 IOMapBaseAddress;
|
||||||
|
UINT32 SSP;
|
||||||
} IA32_TASK_STATE_SEGMENT;
|
} IA32_TASK_STATE_SEGMENT;
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user