EmulatorPkg/Win: Add SimpleFileSystem support
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com> Cc: Andrew Fish <afish@apple.com>
This commit is contained in:
parent
07d8559c6b
commit
56502bf1ad
File diff suppressed because it is too large
Load Diff
|
@ -428,6 +428,7 @@ Returns:
|
||||||
// Emulator Bus Driver Thunks
|
// Emulator Bus Driver Thunks
|
||||||
//
|
//
|
||||||
AddThunkProtocol (&mWinNtWndThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuGop), TRUE);
|
AddThunkProtocol (&mWinNtWndThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuGop), TRUE);
|
||||||
|
AddThunkProtocol (&mWinNtFileSystemThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuFileSystem), TRUE);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Allocate space for gSystemMemory Array
|
// Allocate space for gSystemMemory Array
|
||||||
|
|
|
@ -26,8 +26,12 @@ Abstract:
|
||||||
|
|
||||||
#include <PiPei.h>
|
#include <PiPei.h>
|
||||||
#include <IndustryStandard/PeImage.h>
|
#include <IndustryStandard/PeImage.h>
|
||||||
|
#include <Guid/FileInfo.h>
|
||||||
|
#include <Guid/FileSystemInfo.h>
|
||||||
|
#include <Guid/FileSystemVolumeLabelInfo.h>
|
||||||
#include <Ppi/EmuThunk.h>
|
#include <Ppi/EmuThunk.h>
|
||||||
#include <Protocol/EmuThunk.h>
|
#include <Protocol/EmuThunk.h>
|
||||||
|
#include <Protocol/SimpleFileSystem.h>
|
||||||
|
|
||||||
|
|
||||||
#include <Library/BaseLib.h>
|
#include <Library/BaseLib.h>
|
||||||
|
@ -198,4 +202,5 @@ SecInitializeThunk (
|
||||||
);
|
);
|
||||||
extern EMU_THUNK_PROTOCOL gEmuThunkProtocol;
|
extern EMU_THUNK_PROTOCOL gEmuThunkProtocol;
|
||||||
extern EMU_IO_THUNK_PROTOCOL mWinNtWndThunkIo;
|
extern EMU_IO_THUNK_PROTOCOL mWinNtWndThunkIo;
|
||||||
|
extern EMU_IO_THUNK_PROTOCOL mWinNtFileSystemThunkIo;
|
||||||
#endif
|
#endif
|
|
@ -33,6 +33,7 @@
|
||||||
WinGopInput.c
|
WinGopInput.c
|
||||||
WinGopScreen.c
|
WinGopScreen.c
|
||||||
WinGop.h
|
WinGop.h
|
||||||
|
WinFileSystem.c
|
||||||
WinThunk.c
|
WinThunk.c
|
||||||
WinHost.h
|
WinHost.h
|
||||||
WinHost.c
|
WinHost.c
|
||||||
|
@ -61,6 +62,13 @@
|
||||||
[Protocols]
|
[Protocols]
|
||||||
gEmuIoThunkProtocolGuid
|
gEmuIoThunkProtocolGuid
|
||||||
gEmuGraphicsWindowProtocolGuid
|
gEmuGraphicsWindowProtocolGuid
|
||||||
|
gEfiSimpleFileSystemProtocolGuid
|
||||||
|
|
||||||
|
[Guids]
|
||||||
|
gEfiFileSystemVolumeLabelInfoIdGuid # SOMETIMES_CONSUMED
|
||||||
|
gEfiFileInfoGuid # SOMETIMES_CONSUMED
|
||||||
|
gEfiFileSystemInfoGuid # SOMETIMES_CONSUMED
|
||||||
|
|
||||||
[Pcd]
|
[Pcd]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdInitValueInTempStack
|
gEfiMdeModulePkgTokenSpaceGuid.PcdInitValueInTempStack
|
||||||
|
|
||||||
|
@ -69,6 +77,7 @@
|
||||||
gEmulatorPkgTokenSpaceGuid.PcdEmuMemorySize
|
gEmulatorPkgTokenSpaceGuid.PcdEmuMemorySize
|
||||||
gEmulatorPkgTokenSpaceGuid.PcdEmuFdBaseAddress
|
gEmulatorPkgTokenSpaceGuid.PcdEmuFdBaseAddress
|
||||||
gEmulatorPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window"
|
gEmulatorPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window"
|
||||||
|
gEmulatorPkgTokenSpaceGuid.PcdEmuFileSystem
|
||||||
gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage
|
gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage
|
||||||
|
|
||||||
[BuildOptions]
|
[BuildOptions]
|
||||||
|
|
Loading…
Reference in New Issue