mirror of https://github.com/acidanthera/audk.git
Add pragma(1) to the structure of BM_LEGACY_DEV_ORDER_CONTEXT:
1. some code fragments refer to Data field will pointer + sizeof (BBS_TYPE) + sizeof (UINT16). 2. The list of BM_LEGACY_DEV_ORDER_CONTEXT is supposed to be saved to variable on flash. Progma it can help to reduce variable size. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4760 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
94cb0cfbcd
commit
9b8a6c2edc
|
@ -313,6 +313,7 @@ typedef struct {
|
||||||
UINT16 StringToken;
|
UINT16 StringToken;
|
||||||
} COM_ATTR;
|
} COM_ATTR;
|
||||||
|
|
||||||
|
#pragma pack(1)
|
||||||
typedef struct {
|
typedef struct {
|
||||||
BBS_TYPE BbsType;
|
BBS_TYPE BbsType;
|
||||||
//
|
//
|
||||||
|
@ -321,6 +322,7 @@ typedef struct {
|
||||||
UINT16 Length;
|
UINT16 Length;
|
||||||
UINT16 *Data;
|
UINT16 *Data;
|
||||||
} BM_LEGACY_DEV_ORDER_CONTEXT;
|
} BM_LEGACY_DEV_ORDER_CONTEXT;
|
||||||
|
#pragma pack()
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINT64 BaudRate;
|
UINT64 BaudRate;
|
||||||
|
@ -433,7 +435,7 @@ typedef struct {
|
||||||
BM_LOAD_CONTEXT *LoadContext;
|
BM_LOAD_CONTEXT *LoadContext;
|
||||||
BM_TERMINAL_CONTEXT *TerminalContext;
|
BM_TERMINAL_CONTEXT *TerminalContext;
|
||||||
UINTN CurrentTerminal;
|
UINTN CurrentTerminal;
|
||||||
UINT8 BbsType;
|
BBS_TYPE BbsType;
|
||||||
|
|
||||||
//
|
//
|
||||||
// BMM main formset callback data.
|
// BMM main formset callback data.
|
||||||
|
|
Loading…
Reference in New Issue