Resolve fs cmd KW issue

Currently the PLT_DEVICE_TABLE is limited
to only using OS_BOOT_MEDIUM_TYPE devices
but ideally should be capable of mapping
any system device into the table. For the
time being we will remove the OsBootDeviceGraphics
since it created some KW issue in the fs command.

Signed-off-by: James Gutbub <james.gutbub@intel.com>
This commit is contained in:
James Gutbub 2021-09-27 16:06:03 -07:00 committed by James Gutbub
parent 2d775da9b4
commit a6a0c317dd
3 changed files with 6 additions and 3 deletions

View File

@ -63,7 +63,6 @@ typedef enum {
OsBootDeviceUsb,
OsBootDeviceNvme,
OsBootDeviceMemory,
OsBootDeviceGraphics,
OsBootDeviceMax
} OS_BOOT_MEDIUM_TYPE;

View File

@ -36,7 +36,6 @@ CONST PLT_DEVICE mPlatformDevices[]= {
{{0x00000300}, OsBootDeviceSd , 0 },
{{0x00000300}, OsBootDeviceNvme , 0 },
{{0x00000400}, OsBootDeviceUsb , 0 },
{{0x00000100}, OsBootDeviceGraphics, 0 },
{{0x01000000}, OsBootDeviceMemory, 0 }
};

View File

@ -36,6 +36,11 @@ CONST DISPLAY_TIMING_INFO mDefaultTiming = {
600, 1, 4, 23, 1
};
UINT8
GetGraphicsDeviceNumber (
VOID
);
/**
Test variable services.
@ -231,7 +236,7 @@ EmuGraphicsInit (
GfxPolicy.DisaplayTimingInfo.Vdisp = QemuVbt->ResY;
}
DevPciBase = GetDeviceAddr (OsBootDeviceGraphics, 0);
DevPciBase = ((UINT32) GetGraphicsDeviceNumber ()) << 8;
Status = GraphicsInit (DevPciBase, &GfxPolicy);
if (!EFI_ERROR (Status)) {
Status = GetGraphicOutputModeInfo (&GopMode);