mirror_edk2/MdeModulePkg
Hao Wu 09abc63675 MdeModulePkg RamDiskDxe: Fix wrong HII behavior for more than 8 RAM disks
The RamDiskDxe driver originally uses a variable-length HII varstore to
retrieve the HII checkbox status of each registered RAM disk.

However, HII does not support the variable-length varstore feature.
Therefore, only the checkbox status for the first 8 RAM disks are tracked
for the following definition of HII varstore structure considering the
alignment:

typedef struct {
  UINT64    Size;
  UINT8     RamDiskList[0];
  } RAM_DISK_CONFIGURATION;

This commit uses the private data of each registered RAM disks to track
the HII checkbox status instead to resolve the issue.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
2016-05-10 11:08:57 +08:00
..
Application MdeModulePkg-MemoryProfile(3): Use SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA_BY_OFFSET in MemoryProfileInfo. 2016-04-29 12:49:14 +08:00
Bus MdeModulePkg/Sd: add Erase Block support on sd/emmc device 2016-05-09 16:18:01 +08:00
Core MdeModulePkg/DxeCore: set ImageContext Handle and ImageRead() fields 2016-04-29 16:57:50 +02:00
Include MdeModulePkg/UefiBootManagerLib: Expose *GetLoadOptionBuffer() API 2016-05-04 08:47:34 +08:00
Library MdeModulePkg: FileExplorerLib: prevent freeing null pointer 2016-05-09 16:18:00 +08:00
Logo MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Universal MdeModulePkg RamDiskDxe: Fix wrong HII behavior for more than 8 RAM disks 2016-05-10 11:08:57 +08:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
MdeModulePkg.dec MdeModulePkg: Add EDKII_PI_SMM_COMMUNICATION_REGION_TABLE definition. 2016-04-29 12:49:08 +08:00
MdeModulePkg.dsc MdeModulePkg: Add new driver to publish EDKII_PI_SMM_COMMUNICATION_REGION_TABLE. 2016-04-29 12:49:09 +08:00
MdeModulePkg.uni MdeModulePkg/MdeModulePkg.uni: Add SD related PCD description 2016-04-26 15:44:52 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00