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:
qhuang8 2008-02-26 11:57:32 +00:00
parent 94cb0cfbcd
commit 9b8a6c2edc
1 changed files with 3 additions and 1 deletions

View File

@ -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.