summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-02-26 11:57:32 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-02-26 11:57:32 +0000
commit9b8a6c2edca552546a3d72b6176344d32ada287a (patch)
treefb58bc5225a941d9ae744523be9e381c51a61acc
parent94cb0cfbcd057d5bd7e694b299451c1f86b8ed66 (diff)
downloadedk2-9b8a6c2edca552546a3d72b6176344d32ada287a.zip
edk2-9b8a6c2edca552546a3d72b6176344d32ada287a.tar.gz
edk2-9b8a6c2edca552546a3d72b6176344d32ada287a.tar.bz2
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
-rw-r--r--MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h
index 0de7b05..94a99d9 100644
--- a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h
+++ b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h
@@ -313,6 +313,7 @@ typedef struct {
UINT16 StringToken;
} COM_ATTR;
+#pragma pack(1)
typedef struct {
BBS_TYPE BbsType;
//
@@ -321,6 +322,7 @@ typedef struct {
UINT16 Length;
UINT16 *Data;
} BM_LEGACY_DEV_ORDER_CONTEXT;
+#pragma pack()
typedef struct {
UINT64 BaudRate;
@@ -433,7 +435,7 @@ typedef struct {
BM_LOAD_CONTEXT *LoadContext;
BM_TERMINAL_CONTEXT *TerminalContext;
UINTN CurrentTerminal;
- UINT8 BbsType;
+ BBS_TYPE BbsType;
//
// BMM main formset callback data.