summaryrefslogtreecommitdiff
path: root/UnixPkg/CpuRuntimeDxe
diff options
context:
space:
mode:
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2010-11-30 23:38:40 +0000
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2010-11-30 23:38:40 +0000
commit2ff79f2eda16f8219140d3dae188d2b341f610e1 (patch)
tree693b0c0223c7f3a312f292a3a5ba9eff0def4dbe /UnixPkg/CpuRuntimeDxe
parente23a349aaec2ba7fd4218c6dabaf42da0aa9aa8e (diff)
downloadedk2-platforms-2ff79f2eda16f8219140d3dae188d2b341f610e1.tar.xz
Adding Simple Pointer, GOP, SimpleTextInEx, and Networking protocols to the emulator. Cleaned up POSIX include situation by centralizing it in a single file, like NT32. Fixed TPL issue with TPL High not being emulated correctly, it was possible to take a timer tick when the locks in the DXE core should have prevented this. Remove some unused files to make things easier to maintain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11105 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg/CpuRuntimeDxe')
-rw-r--r--UnixPkg/CpuRuntimeDxe/Cpu.c5
-rw-r--r--UnixPkg/CpuRuntimeDxe/Cpu.inf1
2 files changed, 6 insertions, 0 deletions
diff --git a/UnixPkg/CpuRuntimeDxe/Cpu.c b/UnixPkg/CpuRuntimeDxe/Cpu.c
index 0cc913abfb..d4926c3707 100644
--- a/UnixPkg/CpuRuntimeDxe/Cpu.c
+++ b/UnixPkg/CpuRuntimeDxe/Cpu.c
@@ -28,6 +28,7 @@ Abstract:
#include <Guid/DataHubRecords.h>
#include <Protocol/CpuIo2.h>
#include <Protocol/FrameworkHii.h>
+#include <Protocol/UnixThunk.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
@@ -37,6 +38,8 @@ Abstract:
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
+#include <Library/UnixLib.h>
+
#include "CpuDriver.h"
#include "UnixDxe.h"
#include <Protocol/UnixIo.h>
@@ -151,6 +154,7 @@ Returns:
Private = CPU_ARCH_PROTOCOL_PRIVATE_DATA_FROM_THIS (This);
Private->InterruptState = TRUE;
+ gUnix->EnableInterrupt ();
return EFI_SUCCESS;
}
@@ -184,6 +188,7 @@ Returns:
Private = CPU_ARCH_PROTOCOL_PRIVATE_DATA_FROM_THIS (This);
Private->InterruptState = FALSE;
+ gUnix->DisableInterrupt ();
return EFI_SUCCESS;
}
diff --git a/UnixPkg/CpuRuntimeDxe/Cpu.inf b/UnixPkg/CpuRuntimeDxe/Cpu.inf
index 1c2e9d2f5c..ea49064cea 100644
--- a/UnixPkg/CpuRuntimeDxe/Cpu.inf
+++ b/UnixPkg/CpuRuntimeDxe/Cpu.inf
@@ -52,6 +52,7 @@
HiiLib
DebugLib
BaseLib
+ UnixLib
[Protocols]
gEfiUnixIoProtocolGuid # PROTOCOL_NOTIFY SOMETIMES_CONSUMED