]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/CpuRuntimeDxe/Cpu.c
StdLib: Add multi-byte character support. The normal "narrow" character set is now...
[mirror_edk2.git] / UnixPkg / CpuRuntimeDxe / Cpu.c
index 0cc913abfb1247c7695c3f197b5131dae11d47ee..54c784ea6677c2c60bd6d19a8720f14a5c1bce19 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -28,6 +28,7 @@ Abstract:
 #include <Guid/DataHubRecords.h>\r
 #include <Protocol/CpuIo2.h>\r
 #include <Protocol/FrameworkHii.h>\r
+#include <Protocol/UnixThunk.h>\r
 \r
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
@@ -37,6 +38,8 @@ Abstract:
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/UnixLib.h>\r
+\r
 #include "CpuDriver.h"\r
 #include "UnixDxe.h"\r
 #include <Protocol/UnixIo.h>\r
@@ -151,6 +154,7 @@ Returns:
 \r
   Private                 = CPU_ARCH_PROTOCOL_PRIVATE_DATA_FROM_THIS (This);\r
   Private->InterruptState = TRUE;\r
+  gUnix->EnableInterrupt ();\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -184,6 +188,7 @@ Returns:
 \r
   Private                 = CPU_ARCH_PROTOCOL_PRIVATE_DATA_FROM_THIS (This);\r
   Private->InterruptState = FALSE;\r
+  gUnix->DisableInterrupt ();\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -412,7 +417,7 @@ LogSmbiosData (
   EFI_STATUS         Status;\r
   EFI_SMBIOS_HANDLE  SmbiosHandle;\r
   \r
-  SmbiosHandle = 0;\r
+  SmbiosHandle = SMBIOS_HANDLE_PI_RESERVED;\r
   Status = Smbios->Add (\r
                      Smbios,\r
                      NULL,\r