diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-30 23:38:40 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-30 23:38:40 +0000 |
commit | 2ff79f2eda16f8219140d3dae188d2b341f610e1 (patch) | |
tree | 693b0c0223c7f3a312f292a3a5ba9eff0def4dbe /UnixPkg/CpuRuntimeDxe/Cpu.c | |
parent | e23a349aaec2ba7fd4218c6dabaf42da0aa9aa8e (diff) | |
download | edk2-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/Cpu.c')
-rw-r--r-- | UnixPkg/CpuRuntimeDxe/Cpu.c | 5 |
1 files changed, 5 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;
}
|