EmulatorPkg: Record Argc, Argv and Envp in EmuThunk Ppi
Record Argc, Argv and Envp in EmuThunk Ppi so that other modules can use these fields to change behavior depends on boot parameters or environment. Cc: Andrew Fish <afish@apple.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
2c284027b2
commit
8a485e4bb8
@ -145,6 +145,9 @@ main (
|
||||
}
|
||||
|
||||
CopyMem (SecEmuThunkPpi, &mSecEmuThunkPpi, sizeof (EMU_THUNK_PPI));
|
||||
SecEmuThunkPpi->Argc = Argc;
|
||||
SecEmuThunkPpi->Argv = Argv;
|
||||
SecEmuThunkPpi->Envp = Envp;
|
||||
SecEmuThunkPpi->PersistentMemorySize = FixedPcdGet32 (PcdPersistentMemorySize);
|
||||
AddThunkPpi (EFI_PEI_PPI_DESCRIPTOR_PPI, &gEmuThunkPpiGuid, SecEmuThunkPpi);
|
||||
|
||||
|
Reference in New Issue
Block a user