]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkUnixPkg/Dxe/UnixThunk/Cpu/Cpu.c
Add some definitions for efi event in Uefi/UefiSpec.h to follow spec.
[mirror_edk2.git] / EdkUnixPkg / Dxe / UnixThunk / Cpu / Cpu.c
index af27d7baa1c592c742a40df47276d7de85c8a4c6..af207567d022590d9f0092a9a3b884eb68fafd94 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
 \r
 \r
 Module Name:\r
 \r
@@ -114,7 +114,7 @@ UnixEnableInterrupt (
 Routine Description:\r
 \r
   This routine provides support for emulation of the interrupt enable of the\r
 Routine Description:\r
 \r
   This routine provides support for emulation of the interrupt enable of the\r
-  the system.  For our purposes, CPU enable is just a BOOLEAN that the Timer \r
+  the system.  For our purposes, CPU enable is just a BOOLEAN that the Timer\r
   Architectural Protocol observes in order to defer behaviour while in its\r
   emulated interrupt, or timer tick.\r
 \r
   Architectural Protocol observes in order to defer behaviour while in its\r
   emulated interrupt, or timer tick.\r
 \r
@@ -148,7 +148,7 @@ UnixDisableInterrupt (
 Routine Description:\r
 \r
   This routine provides support for emulation of the interrupt disable of the\r
 Routine Description:\r
 \r
   This routine provides support for emulation of the interrupt disable of the\r
-  the system.  For our purposes, CPU enable is just a BOOLEAN that the Timer \r
+  the system.  For our purposes, CPU enable is just a BOOLEAN that the Timer\r
   Architectural Protocol observes in order to defer behaviour while in its\r
   emulated interrupt, or timer tick.\r
 \r
   Architectural Protocol observes in order to defer behaviour while in its\r
   emulated interrupt, or timer tick.\r
 \r
@@ -183,7 +183,7 @@ UnixGetInterruptState (
 Routine Description:\r
 \r
   This routine provides support for emulation of the interrupt disable of the\r
 Routine Description:\r
 \r
   This routine provides support for emulation of the interrupt disable of the\r
-  the system.  For our purposes, CPU enable is just a BOOLEAN that the Timer \r
+  the system.  For our purposes, CPU enable is just a BOOLEAN that the Timer\r
   Architectural Protocol observes in order to defer behaviour while in its\r
   emulated interrupt, or timer tick.\r
 \r
   Architectural Protocol observes in order to defer behaviour while in its\r
   emulated interrupt, or timer tick.\r
 \r
@@ -223,8 +223,8 @@ UnixInit (
 \r
 Routine Description:\r
 \r
 \r
 Routine Description:\r
 \r
-  This routine would support generation of a CPU INIT.  At \r
-  present, this code does not provide emulation.  \r
+  This routine would support generation of a CPU INIT.  At\r
+  present, this code does not provide emulation.\r
 \r
 Arguments:\r
 \r
 \r
 Arguments:\r
 \r
@@ -258,8 +258,8 @@ UnixRegisterInterruptHandler (
 \r
 Routine Description:\r
 \r
 \r
 Routine Description:\r
 \r
-  This routine would support registration of an interrupt handler.  At \r
-  present, this code does not provide emulation.  \r
+  This routine would support registration of an interrupt handler.  At\r
+  present, this code does not provide emulation.\r
 \r
 Arguments:\r
 \r
 \r
 Arguments:\r
 \r
@@ -305,8 +305,8 @@ UnixGetTimerValue (
 \r
 Routine Description:\r
 \r
 \r
 Routine Description:\r
 \r
-  This routine would support querying of an on-CPU timer.  At present, \r
-  this code does not provide timer emulation.  \r
+  This routine would support querying of an on-CPU timer.  At present,\r
+  this code does not provide timer emulation.\r
 \r
 Arguments:\r
 \r
 \r
 Arguments:\r
 \r
@@ -325,7 +325,7 @@ Returns:
   if (TimerValue == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
   if (TimerValue == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // No timer supported\r
   //\r
   //\r
   // No timer supported\r
   //\r
@@ -345,8 +345,8 @@ UnixSetMemoryAttributes (
 \r
 Routine Description:\r
 \r
 \r
 Routine Description:\r
 \r
-  This routine would support querying of an on-CPU timer.  At present, \r
-  this code does not provide timer emulation.  \r
+  This routine would support querying of an on-CPU timer.  At present,\r
+  this code does not provide timer emulation.\r
 \r
 Arguments:\r
 \r
 \r
 Arguments:\r
 \r
@@ -405,7 +405,7 @@ Returns:
 \r
   Status\r
 \r
 \r
   Status\r
 \r
-  EFI_SUCCESS           - protocol instance can be published \r
+  EFI_SUCCESS           - protocol instance can be published\r
   EFI_OUT_OF_RESOURCES  - cannot allocate protocol data structure\r
   EFI_DEVICE_ERROR      - cannot create the thread\r
 \r
   EFI_OUT_OF_RESOURCES  - cannot allocate protocol data structure\r
   EFI_DEVICE_ERROR      - cannot create the thread\r
 \r
@@ -458,8 +458,8 @@ Returns:
   // Install notify function to store processor data to HII database and data hub.\r
   //\r
   Status = gBS->CreateEvent (\r
   // Install notify function to store processor data to HII database and data hub.\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_NOTIFY_SIGNAL,\r
+                  TPL_CALLBACK,\r
                   UnixIoProtocolNotifyFunction,\r
                   ImageHandle,\r
                   &Event\r
                   UnixIoProtocolNotifyFunction,\r
                   ImageHandle,\r
                   &Event\r
@@ -479,7 +479,7 @@ Returns:
   DEBUG ((EFI_D_ERROR, "CPU Architectural Protocol Loaded\n"));\r
 \r
 \r
   DEBUG ((EFI_D_ERROR, "CPU Architectural Protocol Loaded\n"));\r
 \r
 \r
-  \r
+\r
   return Status;\r
 }\r
 \r
   return Status;\r
 }\r
 \r
@@ -495,8 +495,8 @@ Routine Description:
 Arguments:\r
   String - Unicode string.\r
 \r
 Arguments:\r
   String - Unicode string.\r
 \r
-Returns: \r
-  UINTN of the number represented by String.  \r
+Returns:\r
+  UINTN of the number represented by String.\r
 \r
 --*/\r
 {\r
 \r
 --*/\r
 {\r