]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/VfrCompile: Correct Bit Field Flags for numeric/one of
authorHuang, Long1 <long1.huang@intel.com>
Tue, 30 Nov 2021 01:54:55 +0000 (09:54 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 9 Dec 2021 03:31:26 +0000 (03:31 +0000)
commitc82ab4d8c148c4009e0b31d1dd2ea6f7d4aea80d
tree9a34142af50b030f20c46cf7fb359ae753bec8bd
parentd25b803e514a11a25de91d4174b289d2ae783338
BaseTools/VfrCompile: Correct Bit Field Flags for numeric/one of

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3752

Add Bit mask to numeric/one of opcode to set correctly Flags for Bit Field.
VfrSyntax.g: Set "LFlags &= EDKII_IFR_DISPLAY_BIT" before "LFlags |= (EDKII_IFR_NUMERIC_SIZE_BIT & (_GET_CURRQEST_VARSIZE()));"
VfrFormPkg.h: update "if (LFlags & EFI_IFR_DISPLAY)" with "if (LFlags & EDKII_IFR_DISPLAY_BIT)" in SetFlagsForBitField()

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Signed-off-by: Long1 Huang <long1.huang@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
BaseTools/Source/C/VfrCompile/VfrFormPkg.h
BaseTools/Source/C/VfrCompile/VfrSyntax.g