]> git.proxmox.com Git - mirror_edk2.git/commitdiff
add EFIAPI for those constructor funcitons declaration
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 18 Sep 2006 02:07:18 +0000 (02:07 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 18 Sep 2006 02:07:18 +0000 (02:07 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1547 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Library/PeiServicesTablePointerLib.h
MdePkg/Library/DxeIoLibCpuIo/IoLib.c
MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.c
MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
MdePkg/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointer.c
MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.c
MdePkg/Library/UefiDriverModelLib/UefiDriverModelLib.c
MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c

index 79f27c34562e6dbf80c4e6beaead764ce16e33a1..74dd321f7f4c39ed8595e1503fa0ce6b8052d059 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   PEI Services Table Pointer Library services\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
+  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
+  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:  PeiServicesTablePointerLib.h\r
 \r
 \r
 /**\r
   The function returns the pointer to PEI services.\r
-  \r
-  The function returns the pointer to PEI services. \r
+\r
+  The function returns the pointer to PEI services.\r
   It will ASSERT() if the pointer to PEI services is NULL.\r
 \r
   @retval  The pointer to PeiServices.\r
 \r
 **/\r
 EFI_PEI_SERVICES **\r
+EFIAPI\r
 GetPeiServicesTablePointer (\r
   VOID\r
   );\r
index fa3421bacad4fc95290d381a22b6c9d7b0e67e6f..4736c561dce609fa5bb3b4d071605c7c8c1206f9 100644 (file)
@@ -21,17 +21,18 @@ STATIC EFI_CPU_IO_PROTOCOL          *mCpuIo = NULL;
 \r
 /**\r
   The constructor function caches the pointer to CpuIo protocol.\r
-  \r
+\r
   The constructor function locates CpuIo protocol from protocol database.\r
-  It will ASSERT() if that operation fails and it will always return EFI_SUCCESS. \r
+  It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.\r
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 IoLibConstructor (\r
   IN      EFI_HANDLE                ImageHandle,\r
   IN      EFI_SYSTEM_TABLE          *SystemTable\r
@@ -53,9 +54,9 @@ IoLibConstructor (
   This function must guarantee that all I/O read and write operations are serialized.\r
 \r
   @param  Port          The base address of the I/O operation.\r
-                        The caller is responsible for aligning the Address if required. \r
+                        The caller is responsible for aligning the Address if required.\r
   @param  Width         The width of the I/O operation.\r
-  \r
+\r
   @return Data read from registers in the EFI CPU I/O space.\r
 \r
 **/\r
@@ -83,10 +84,10 @@ IoReadWorker (
   This function must guarantee that all I/O read and write operations are serialized.\r
 \r
   @param  Port          The base address of the I/O operation.\r
-                        The caller is responsible for aligning the Address if required. \r
+                        The caller is responsible for aligning the Address if required.\r
   @param  Width         The width of the I/O operation.\r
   @param  Data          The value to write to the I/O port.\r
-  \r
+\r
   @return The paramter of Data.\r
 \r
 **/\r
@@ -107,16 +108,16 @@ IoWriteWorker (
 }\r
 \r
 /**\r
-  Reads memory-mapped registers in the EFI system memory space. \r
+  Reads memory-mapped registers in the EFI system memory space.\r
 \r
   Reads the MMIO registers specified by Address with registers width specified by Width.\r
   The read value is returned. If such operations are not supported, then ASSERT().\r
   This function must guarantee that all MMIO read and write operations are serialized.\r
 \r
   @param  Address       The MMIO register to read.\r
-                        The caller is responsible for aligning the Address if required. \r
+                        The caller is responsible for aligning the Address if required.\r
   @param  Width         The width of the I/O operation.\r
-  \r
+\r
   @return Data read from registers in the EFI system memory space.\r
 \r
 **/\r
@@ -137,16 +138,16 @@ MmioReadWorker (
 }\r
 \r
 /**\r
-  Writes memory-mapped registers in the EFI system memory space. \r
+  Writes memory-mapped registers in the EFI system memory space.\r
 \r
   Writes the MMIO registers specified by Address with registers width and value specified by Width\r
   and Data respectively. Data is returned. If such operations are not supported, then ASSERT().\r
   This function must guarantee that all MMIO read and write operations are serialized.\r
 \r
   @param  Address       The MMIO register to read.\r
-                        The caller is responsible for aligning the Address if required. \r
+                        The caller is responsible for aligning the Address if required.\r
   @param  Width         The width of the I/O operation.\r
-  \r
+\r
   @return Data read from registers in the EFI system memory space.\r
 \r
 **/\r
index 829e74f2807fa4d2327fe011b1790693393412af..af19099def63b4e9a09c694fd7f32456fa4a2e4e 100644 (file)
@@ -35,6 +35,7 @@ EFI_DXE_SERVICES  *gDS      = NULL;
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 DxeServicesTableLibConstructor (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
index 18d8c99b44df6c7ba6ed1542c93c493a5d4d45eb..e1ff6edba957f57f17dfdf72deff9a8989f189be 100644 (file)
@@ -2,13 +2,13 @@
   PEI Services Table Pointer Library.\r
 \r
   Copyright (c) 2006, Intel Corporation<BR>\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
+  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
+  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:  PeiServicesTablePointer.c\r
 \r
@@ -20,8 +20,8 @@ static EFI_PEI_SERVICES  **gPeiServices;
 \r
 /**\r
   The function returns the pointer to PEI services.\r
-  \r
-  The function returns the pointer to PEI services. \r
+\r
+  The function returns the pointer to PEI services.\r
   It will ASSERT() if the pointer to PEI services is NULL.\r
 \r
   @retval  The pointer to PeiServices.\r
@@ -40,16 +40,17 @@ GetPeiServicesTablePointer (
 /**\r
   The constructor function caches the pointer to PEI services.\r
   \r
-  The constructor function caches the pointer to PEI services. \r
+  The constructor function caches the pointer to PEI services.\r
   It will always return EFI_SUCCESS.\r
 \r
   @param  FfsHeader   Pointer to FFS header the loaded driver.\r
   @param  PeiServices Pointer to the PEI services.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 PeiServicesTablePointerLibConstructor (\r
   IN EFI_FFS_FILE_HEADER  *FfsHeader,\r
   IN EFI_PEI_SERVICES     **PeiServices\r
index 5901527adaa4640b2839c7a3923635ab8a47dac3..bcd35bcc287fd6559a687b84355602d3e04fbb60 100644 (file)
@@ -2,12 +2,12 @@
   PEI Services Table Pointer Library.\r
 \r
   Copyright (c) 2006, Intel Corporation<BR>\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
+  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
+  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:  PeiServicesTablePointer.c\r
 \r
 /**\r
   The function returns the pointer to PeiServices.\r
-  \r
-  The function returns the pointer to PeiServices. \r
+\r
+  The function returns the pointer to PeiServices.\r
   It will ASSERT() if the pointer to PeiServices is NULL.\r
 \r
   @retval  The pointer to PeiServices.\r
 \r
 **/\r
 EFI_PEI_SERVICES **\r
+EFIAPI\r
 GetPeiServicesTablePointer (\r
   VOID\r
   )\r
@@ -38,17 +39,18 @@ GetPeiServicesTablePointer (
 \r
 /**\r
   The constructor function caches the pointer to PEI services.\r
-  \r
-  The constructor function caches the pointer to PEI services. \r
+\r
+  The constructor function caches the pointer to PEI services.\r
   It will always return EFI_SUCCESS.\r
 \r
   @param  FfsHeader   Pointer to FFS header the loaded driver.\r
   @param  PeiServices Pointer to the PEI services.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 PeiServicesTablePointerLibConstructor (\r
   IN EFI_FFS_FILE_HEADER  *FfsHeader,\r
   IN EFI_PEI_SERVICES     **PeiServices\r
index b45d12debfa0cf0edb189c81d8e64e49a2740ef7..0db4707e292ffb56ce3e98ac50df5a827038f619 100644 (file)
@@ -2,13 +2,13 @@
   UEFI Boot Services Table Library.\r
 \r
   Copyright (c) 2006, Intel Corporation<BR>\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
+  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
+  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:  UefiBootServicesTableLib.c\r
 \r
@@ -21,18 +21,19 @@ EFI_BOOT_SERVICES  *gBS;
 /**\r
   The constructor function caches the pointer of Boot Services Table.\r
   \r
-  The constructor function caches the pointer of Boot Services Table through System Table. \r
+  The constructor function caches the pointer of Boot Services Table through System Table.\r
   It will ASSERT() if the pointer of System Table is NULL.\r
   It will ASSERT() if the pointer of Boot Services Table is NULL.\r
   It will always return EFI_SUCCESS.\r
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UefiBootServicesTableLibConstructor (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
index 4550937efdae6977674000c0aff54d75b49b7d69..5795e5ae50d459d2ba85c068c98617d9b6f3a386 100644 (file)
@@ -2,13 +2,13 @@
   EFI Driver Model Library.\r
 \r
   Copyright (c) 2006, Intel Corporation<BR>\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
+  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
+  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:  UefiDriverModelLib.c\r
 \r
 /**\r
   The constructor function installs the standard EFI Driver Model Protocols.\r
 \r
-  @param[in] ImageHandle The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS The constructor always return EFI_SUCCESS.\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UefiDriverModelLibConstructor (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
@@ -59,7 +60,7 @@ UefiDriverModelLibConstructor (
 \r
     //\r
     // Check for all 8 possible combinations of the ComponentName, DriverConfiguration, and DriverDiagnostics Protocol\r
-    // These are all checks against const pointers, so the optimizing compiler will only select one of the \r
+    // These are all checks against const pointers, so the optimizing compiler will only select one of the\r
     // calls to InstallMultipleProtocolInterfaces()\r
     //\r
     if (_gDriverModelProtocolList[0].DriverDiagnostics == NULL) {\r
@@ -230,13 +231,14 @@ UefiDriverModelLibConstructor (
 /**\r
   The destructor function uninstalls the standard EFI Driver Model Protocols.\r
 \r
-  @param[in] ImageHandle The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS The destructor always return EFI_SUCCESS.\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UefiDriverModelLibDestructor (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
@@ -269,7 +271,7 @@ UefiDriverModelLibDestructor (
 \r
     //\r
     // Check for all 8 possible combinations of the ComponentName, DriverConfiguration, and DriverDiagnostics Protocol\r
-    // These are all checks against const pointers, so the optimizing compiler will only select one of the \r
+    // These are all checks against const pointers, so the optimizing compiler will only select one of the\r
     // calls to InstallMultipleProtocolInterfaces()\r
     //\r
     if (_gDriverModelProtocolList[0].DriverDiagnostics == NULL) {\r
index bf15467bbec028914088d9975e30cee829bd7bc2..852a6923443ec5879ace2dda61fe9af52c5270f5 100644 (file)
@@ -30,6 +30,7 @@ EFI_RUNTIME_SERVICES  *gRT = NULL;
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UefiRuntimeServicesTableLibConstructor (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r