From 9b8a6c2edca552546a3d72b6176344d32ada287a Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Tue, 26 Feb 2008 11:57:32 +0000 Subject: 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 --- MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h index 0de7b05dae..94a99d9f90 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. -- cgit v1.2.3