Skip to content

Commit 19cc031

Browse files
committed
UT 0.21.5 /UP 0.3.9 untested
- fixed various crashes reported in LongSoft#39 - changes aren't tested yet, please don't use until LongSoft#39 is fixed
1 parent 7ebbc58 commit 19cc031

File tree

5 files changed

+181
-27
lines changed

5 files changed

+181
-27
lines changed

basetypes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ typedef unsigned int UINTN;
8686
#define ERR_NOTHING_TO_PATCH 41
8787
#define ERR_DEPEX_PARSE_FAILED 42
8888
#define ERR_TRUNCATED_IMAGE 43
89+
#define ERR_BAD_RELOCATION_ENTRY 44
8990
#define ERR_NOT_IMPLEMENTED 0xFF
9091

9192
// UDK porting definitions

descriptor.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ WITHWARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
2121

2222
// Flash descriptor header
2323
typedef struct _FLASH_DESCRIPTOR_HEADER {
24-
UINT8 FfVector[16]; // Must be 16 0xFFs
24+
UINT8 FfVector[16]; // Must be 16 0xFFs
2525
UINT32 Signature; // 0x0FF0A55A
2626
} FLASH_DESCRIPTOR_HEADER;
2727

@@ -53,6 +53,8 @@ typedef struct _FLASH_DESCRIPTOR_MAP {
5353
UINT32: 16;
5454
} FLASH_DESCRIPTOR_MAP;
5555

56+
#define FLASH_DESCRIPTOR_MAX_BASE 0xE0
57+
5658
// Component section
5759
// Flash parameters DWORD structure
5860
typedef struct _FLASH_PARAMETERS {
@@ -114,7 +116,7 @@ typedef struct _FLASH_DESCRIPTOR_COMPONENT_SECTION_V2 {
114116
// If limit is zero - region is not present
115117
typedef struct _FLASH_DESCRIPTOR_REGION_SECTION {
116118
UINT16 DescriptorBase; // Descriptor
117-
UINT16 DescriptorLimit; //
119+
UINT16 DescriptorLimit; //
118120
UINT16 BiosBase; // BIOS
119121
UINT16 BiosLimit; //
120122
UINT16 MeBase; // ME

ffs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ typedef struct _EFI_FIRMWARE_VOLUME_HEADER {
109109
UINT16 ExtHeaderOffset; //Reserved in Revision 1
110110
UINT8 Reserved;
111111
UINT8 Revision;
112-
//EFI_FV_BLOCK_MAP_ENTRY FvBlockMap[1];
112+
//EFI_FV_BLOCK_MAP_ENTRY FvBlockMap[2];
113113
} EFI_FIRMWARE_VOLUME_HEADER;
114114

115115
// Standard file system GUIDs

0 commit comments

Comments
 (0)