Deric Cole
f6ce1a5cd8
EmulatorPkg/PeiTimerLib: Bug fix in NanoSecondDelay
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4339
Thunk->Sleep is expecting nanoseconds, no need to multiply by 100.
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Signed-off-by: Deric Cole <deric.cole@intel.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2023-02-09 02:04:37 +00:00
Abner Chang
259e1e0462
EmulatorPkg/RedfishHostInterface: Add NULL function
...
Add NULL function
RedfishPlatformHostInterfaceNotification that returns
EFI_UNSUPPORTED.
Signed-off-by: Abner Chang <abner.chang@amd.com >
Cc: Nickle Wang <nicklew@nvidia.com >
Cc: Igor Kulchytskyy <igork@ami.com >
Reviewed-by: Nickle Wang <nicklew@nvidia.com >
2022-12-20 06:54:06 +00:00
Liu, Zhiguang
2c284027b2
EmulatorPkg: Remove unnecessary dependency on EmbeddedPkg
...
EmulatorPkg doesn't need depend on EmbeddedPkg, so remove the dependency.
Cc: Andrew Fish <afish@apple.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com >
2022-12-08 10:44:20 +00:00
Abner Chang
5b56c52b5c
EmulatorPkg/RedfishPlatformCredentialLib: Don't stop Redfish service
...
https://bugzilla.tianocore.org/show_bug.cgi?id=3859
Platform Redfish credential library shouldn't stop the service at either EndOfDXE or ExitBootService notification. RedfishConfigureHandler UEFI driver is responsible to stop the Redfish service when EndOfDXE or ExitBootService event is triggered.
Signed-off-by: Abner Chang <abner.chang@hpe.com >
Cc: Nickle Wang <nickle.wang@hpe.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Reviewed-by: Nickle Wang <nickle.wang@hpe.com >
2022-03-16 13:02:28 +00:00
Abner Chang
33438f7354
EmulatorPkg/RedfishPlatformCredentialLib: Check EFI_SECURE_BOOT_MODE_NAME
...
https://bugzilla.tianocore.org/show_bug.cgi?id=3858
Check EFI_SECURE_BOOT_MODE_NAME before setting the flags to
prohibit acquiring Redfish service credential and using Redfish
service.
Signed-off-by: Abner Chang <abner.chang@hpe.com >
Cc: Nickle Wang <nickle.wang@hpe.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Reviewed-by: Nickle Wang <nickle.wang@hpe.com >
2022-03-16 08:58:43 +00:00
Michael Kubacki
a550d468a6
EmulatorPkg: Apply uncrustify changes
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in the EmulatorPkg package
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2021-12-07 17:24:28 +00:00
Michael D Kinney
c69fc80c80
EmulatorPkg: Change OPTIONAL keyword usage style
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760
Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params.
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael Kubacki <michael.kubacki@microsoft.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2021-12-07 17:24:28 +00:00
Abner Chang
c88736f860
EmulatorPkg/library: RedfishPlatformCredentialLib
...
Platform specific implementation of acquiring credential
to access to Redfish service. This is the platform library
which incorporates with Redfish Credential DXE driver under
Redfish package.
Signed-off-by: Abner Chang <abner.chang@hpe.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Nickle Wang <nickle.wang@hpe.com >
Cc: Peter O'Hanley <peter.ohanley@hpe.com >
Acked-by: Ray Ni <ray.ni@intel.com >
2021-01-16 03:35:31 +00:00
Abner Chang
cc5faa780d
EmulatorPkg/RedfishPlatformHostInterfaceLib library
...
BZ:
https://bugzilla.tianocore.org/show_bug.cgi?id=3102
Platform specific implementation of providing
Redfish host interface information.
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com >
Signed-off-by: Ting Ye <ting.ye@intel.com >
Signed-off-by: Siyuan Fu <siyuan.fu@intel.com >
Signed-off-by: Fan Wang <fan.wang@intel.com >
Signed-off-by: Abner Chang <abner.chang@hpe.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Nickle Wang <nickle.wang@hpe.com >
Cc: Peter O'Hanley <peter.ohanley@hpe.com >
Acked-by: Ray Ni <ray.ni@intel.com >
2020-12-03 07:54:44 +00:00
Laszlo Ersek
60d222748a
EmulatorPkg/DxeTimerLib: drop superfluous cast
...
"gTimerEvent" has type EFI_EVENT already, drop the superfluous cast.
Cc: Andrew Fish <afish@apple.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com >
2019-10-09 09:40:09 +02:00
Michael Johnson
d652b458f5
EmulatorPkg/TimerLib: Add missing GetTimeInNanoSecond function
...
Add GetTimeInNanoSecond, already declared in the TimerLib API,
to EmulatorPkg implementations of TimerLib.
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Signed-off-by: Michael Johnson <michael.johnson@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2019-09-19 14:37:37 +08:00
shenglei
e0e388a427
EmulatorPkg/PeiEmuSerialPortLib: Update the INF file Guid
...
FILE GUID in PeiEmuSerialPortLib.inf is same to
MdePkg\Library\BaseSerialPortLibNull\BaseSerialPortLibNull.inf.
PeiEmuSerialPortLib.inf FILE_GUID should be updated.
https://bugzilla.tianocore.org/show_bug.cgi?id=2144
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Ray Ni <ray.ni@Intel.com >
2019-09-17 09:37:25 +08:00
Michael D Kinney
9e3ab94dc8
EmulatorPkg: Add -D DISABLE_NEW_DEPRECATED_INTERFACES
...
https://bugzilla.tianocore.org/show_bug.cgi?id=162
Update EmulatorPkg specific modules and libraries to use
safe string functions in BaseLib and safe PcdSetxx()
functions in PcdLib. With these updates, the define
DISABLE_NEW_DEPRECATED_INTERFACES is enabled in the DSC
file.
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
Acked-by: Jordan Justen <jordan.l.justen@intel.com >
Tested-by: Andrew Fish <afish@apple.com >
2019-08-19 09:49:54 -07:00
Zhiguang Liu
0e92957eaa
EmulatorPkg: Make the shell be the first boot option
...
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1649
Make the shell be the first boot option by default,
So it can boot into UEFI Internal Shell directly
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2019-05-10 10:49:45 +08:00
Zhiguang Liu
792f0d4f12
EmulatorPkg: Support a second GOP window
...
Two GOP screens will be created if PcdEmuGop is set in
EmulatorPkg.dsc:
gEmulatorPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window 1!GOP Window 2"
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1687
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
2019-05-08 16:21:49 +08:00
Michael D Kinney
e3ba31da1c
EmulatorPkg: Replace BSD License with BSD+Patent License
...
https://bugzilla.tianocore.org/show_bug.cgi?id=1373
Replace BSD 2-Clause License with BSD+Patent License. This change is
based on the following emails:
https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html
https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html
RFCs with detailed process for the license change:
V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html
V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html
V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2019-04-09 10:57:59 -07:00
Chen A Chen
ba6037f833
EmulatorPkg: Removing ipf which is no longer supported from edk2.
...
Removing rules for Ipf sources file:
* Remove the source file which path with "ipf" and also listed in
[Sources.IPF] section of INF file.
* Remove the source file which listed in [Components.IPF] section
of DSC file and not listed in any other [Components] section.
* Remove the embedded Ipf code for MDE_CPU_IPF.
Removing rules for Inf file:
* Remove IPF from VALID_ARCHITECTURES comments.
* Remove DXE_SAL_DRIVER from LIBRARY_CLASS in [Defines] section.
* Remove the INF which only listed in [Components.IPF] section in DSC.
* Remove statements from [BuildOptions] that provide IPF specific flags.
* Remove any IPF sepcific sections.
Removing rules for Dec file:
* Remove [Includes.IPF] section from Dec.
Removing rules for Dsc file:
* Remove IPF from SUPPORTED_ARCHITECTURES in [Defines] section of DSC.
* Remove any IPF specific sections.
* Remove statements from [BuildOptions] that provide IPF specific flags.
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chen A Chen <chen.a.chen@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
2018-09-25 23:46:00 +08:00
Ruiyu Ni
6623f8fe66
EmulatorPkg/PlatformBmLib: Fix GCC build failure
...
Some local variables are initialized but never used.
GCC complains about that. The patch fixes this issue.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Dandan Bi <dandan.bi@intel.com >
2018-09-06 14:43:17 +08:00
Ruiyu Ni
e01238946c
EmulatorPkg: Use MdeModulePkg/Bds module
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1120
Logo is enabled by adding a separate core driver LogoDxe.
UiApp and BootManagerMenuApp are added to provide two UIs.
LoadFileOnFv2 is added to auto-install LoadFile protocol for
applications in FV so the boot options for applications can be
auto-created from LoadFile.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
Cc: Andrew Fish <afish@apple.com >
2018-08-31 10:40:18 +08:00
Ruiyu Ni
79e4f2a56a
EmulatorPkg: formalize line endings
...
The patch is the result of running
"BaseTools/Scripts/FormatDosFiles.py EmulatorPkg/"
No functionality impact.
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: Liming Gao <liming.gao@intel.com >
2018-08-30 09:26:54 +08:00
Ruiyu Ni
41fd56be34
EmulatorPkg/PlatformBds: Signal EndOfDxe in platform BDS
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1079
Without signal of EndOfDxe, the 3rd party code (.efi from non-flash
storage) cannot run. It's forbidden by
8be37a5cee
*MdeModulePkg/SecurityStubDxe: Defer 3rd party image before EndOfDxe
The patch enables running of SCT from internal shell.
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 >
2018-08-27 15:21:01 +08:00
Ruiyu Ni
47c04c382e
EmulatorPkg/ThunkProtocolList: Fix VS build failure
...
VS compiler complains converting UINTN to UINT16 causes data lost.
Add typecast to fix the build failure.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Andrdw Fish <afish@apple.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
2018-08-27 15:20:47 +08:00
Marvin Häuser
7dc7c7435e
EmulatorPkg/SmbiosLib: Declare the correct library class.
...
Currently, SmbiosLib declares the PcdLib library class. Update the
declaration to declare SmbiosLib.
V2:
- Do not change the copyright date as requested.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
2018-05-24 13:33:56 -07:00
Gary Lin
afa99fac54
EmulatorPkg: Fix typos in comments and variables
...
- Predfined -> Predefined
- minimue -> minimum
- predeined -> predefined
- excute -> execute
- availible -> available
- discontiguous -> discontinuous
- permenent -> permanent
- immediatly -> immediately
- environmemt -> environment
- Seperator -> Separator
- remmeber -> remember
- initailized -> initialized
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
2016-10-19 13:32:20 -07:00
Star Zeng
9fffd8e204
EmulatorPkg: Use SerialDxe in MdeModulePkg instead of EmbeddedPkg
...
It is also to add GetControl/SetControl/SetAttributes implementation
for DxeEmuSerialPortLib.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18967 6f19259b-4bc3-4df7-8a09-765794883524
2015-11-26 08:48:38 +00:00
Ruiyu Ni
3214cebd84
EmulatorPkg: Use the new PCDs defined in MdePkg.
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17319 6f19259b-4bc3-4df7-8a09-765794883524
2015-05-06 03:28:12 +00:00
Jordan Justen
0cecbe565a
EmulatorPkg: Add structure braces { } to fix build warning
...
The GCC parameter -Wno-missing-braces was recently removed. This
caused build warnings where structures were instantiated without
proper brace usage.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15632 6f19259b-4bc3-4df7-8a09-765794883524
2014-07-04 20:50:41 +00:00
Gao, Liming
95c2e69ad6
Update PeiServicesTablePointerLib instance to add new API MigratePeiServicesTablePointer
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gao, Liming <liming.gao@intel.com >
Reviewed-By: Andrew Fish <afish@apple.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15128 6f19259b-4bc3-4df7-8a09-765794883524
2014-01-16 02:42:17 +00:00
oliviermartin
4c43e8526b
EmulatorPkg/(Pei|Dxe)EmuSerialPortLib: Remove the SerialPortExtLib functions from SerialPortLib
...
SerialPortSetControl, SerialPortGetControl and SerialPortSetAttributes are functions
of the SerialPortExtLib library interface. They should not be implemented by the
SerialPortLib library.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.martin@arm.com >
Reviewed-by: Andrew Fish <afish@apple.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14357 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-14 23:50:33 +00:00
andrewfish
171bb2e53c
Sync with EmulatorPkg changes.
...
signed-off-by:afish@apple.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14015 6f19259b-4bc3-4df7-8a09-765794883524
2012-12-22 00:45:55 +00:00
andrewfish
6c76e4fa39
Fix structure init issues.
...
signed-off-by:afish@apple.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14014 6f19259b-4bc3-4df7-8a09-765794883524
2012-12-22 00:44:04 +00:00
jljusten
e148512e51
EmulatorPkg: Fix Visual Studio build for IA32 & X64
...
This code is untested since there is currently no 'host' component
for Win32/Win64.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13633 6f19259b-4bc3-4df7-8a09-765794883524
2012-08-15 00:03:25 +00:00
andrewfish
79b3ce7e99
Update based on review feedback.
...
signed-off-by:andrewfish
reviewed-by:Elvin
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12976 6f19259b-4bc3-4df7-8a09-765794883524
2012-01-31 09:06:53 +00:00
andrewfish
8fa6b23c49
cleanup SmbiosLib.h definitions, and the code that depends on them.
...
signed-off-by:andrewfish
reviewed-by:mikekinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12970 6f19259b-4bc3-4df7-8a09-765794883524
2012-01-30 23:55:38 +00:00
andrewfish
803936cc30
Oops missed these items in 12966. Also forgot the signoff, this signoff includes svn 12966.
...
signed-off-by:andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12967 6f19259b-4bc3-4df7-8a09-765794883524
2012-01-30 19:01:10 +00:00
andrewfish
9184d5da2f
EmulatorPkg: Make the library work with DXE Core.
...
The DXE core calls library constructors after it calls DEBUG macros, so we need more error handling in the lib.
signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12118 6f19259b-4bc3-4df7-8a09-765794883524
2011-08-11 03:24:35 +00:00
jljusten
d18d8a1d0e
EmulatorPkg: Remove all trailing whitespace
...
Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11919 6f19259b-4bc3-4df7-8a09-765794883524
2011-06-28 16:50:26 +00:00
jljusten
bb89ec1a7e
InOsEmuPkg: Rename package to EmulatorPkg & Sec to Host
...
* Rename InOsEmuPkg to EmulatorPkg
* Rename Unix/Sec to Unix/Host
Signed-off-by: jljusten
Reviewed-by: andrewfish
Reviewed-by: geekboy15a
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11918 6f19259b-4bc3-4df7-8a09-765794883524
2011-06-28 16:47:23 +00:00