EmbeddedPkg/MmcDxe: Align the ExtCSD buffer

ExtCSD structure may be read via DMA. So align it to
page to avoid data corruption.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jun Nie <jun.nie@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
Jun Nie
2017-07-04 23:43:16 +08:00
committed by Leif Lindholm
parent e4129b0e58
commit 7bb5fad566
3 changed files with 18 additions and 6 deletions

View File

@@ -319,7 +319,7 @@ typedef struct {
OCR OCRData;
CID CIDData;
CSD CSDData;
ECSD ECSDData; // MMC V4 extended card specific
ECSD *ECSDData; // MMC V4 extended card specific
} CARD_INFO;
typedef struct _MMC_HOST_INSTANCE {