From fb610f2ac1a90ea5ed11e43edd386739314e8cb1 Mon Sep 17 00:00:00 2001 From: zliu3 Date: Fri, 12 Jan 2007 09:07:18 +0000 Subject: [PATCH] Removed the DxeSalLibConstructor() from the EdkDxeSalLib and EdkDxeRuntimeSalLib for the AutoGen lib constructor tools. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2241 6f19259b-4bc3-4df7-8a09-765794883524 --- .../EdkDxeRuntimeSalLib.msa | 3 -- .../EdkDxeRuntimeSalLib/Ipf/EsalServiceLib.c | 44 +++++++------------ .../Library/EdkDxeSalLib/EdkDxeSalLib.msa | 3 -- .../Library/EdkDxeSalLib/Ipf/EsalServiceLib.c | 44 +++++++------------ 4 files changed, 34 insertions(+), 60 deletions(-) diff --git a/EdkModulePkg/Library/EdkDxeRuntimeSalLib/EdkDxeRuntimeSalLib.msa b/EdkModulePkg/Library/EdkDxeRuntimeSalLib/EdkDxeRuntimeSalLib.msa index 6df0cb970b..1ce18d70b0 100644 --- a/EdkModulePkg/Library/EdkDxeRuntimeSalLib/EdkDxeRuntimeSalLib.msa +++ b/EdkModulePkg/Library/EdkDxeRuntimeSalLib/EdkDxeRuntimeSalLib.msa @@ -54,9 +54,6 @@ EFI_SPECIFICATION_VERSION 0x00020000 EDK_RELEASE_VERSION 0x00020000 - - DxeSalLibConstructor - DxeSalVirtualNotifyEvent diff --git a/EdkModulePkg/Library/EdkDxeRuntimeSalLib/Ipf/EsalServiceLib.c b/EdkModulePkg/Library/EdkDxeRuntimeSalLib/Ipf/EsalServiceLib.c index 9eb909dcd3..199b14becc 100644 --- a/EdkModulePkg/Library/EdkDxeRuntimeSalLib/Ipf/EsalServiceLib.c +++ b/EdkModulePkg/Library/EdkDxeRuntimeSalLib/Ipf/EsalServiceLib.c @@ -1,13 +1,13 @@ /*++ -Copyright (c) 2006, Intel Corporation -All rights reserved. This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +Copyright (c) 2006, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: @@ -58,16 +58,6 @@ DxeSalLibInitialize ( return EFI_SUCCESS; } -EFI_STATUS -EFIAPI -DxeSalLibConstructor ( - IN EFI_HANDLE ImageHandle, - IN EFI_SYSTEM_TABLE *SystemTable - ) -{ - return DxeSalLibInitialize (); -} - VOID EFIAPI DxeSalVirtualNotifyEvent ( @@ -83,10 +73,10 @@ Routine Description: Arguments: Event - The Event that is being processed - + Context - Event Context -Returns: +Returns: None @@ -115,11 +105,11 @@ Routine Description: Arguments: FunctionId - ID of function to register - ClassGuid - GUID of function class + ClassGuid - GUID of function class Function - Function to register under ClassGuid/FunctionId pair ModuleGlobal - Module global for Function. -Returns: +Returns: EFI_SUCCESS - If ClassGuid/FunctionId Function was registered. --*/ @@ -149,12 +139,12 @@ Routine Description: This function is boot service only! Arguments: - ClassGuid - GUID of function class + ClassGuid - GUID of function class ModuleGlobal - Module global for Function. - ... - SAL_INTERNAL_EXTENDED_SAL_PROC and FunctionId pairs. NULL + ... - SAL_INTERNAL_EXTENDED_SAL_PROC and FunctionId pairs. NULL indicates the end of the list. -Returns: +Returns: EFI_SUCCESS - All members of ClassGuid registered --*/ @@ -209,7 +199,7 @@ EfiCallEsalService ( Routine Description: - Call module that is not linked direclty to this module. This code is IP + Call module that is not linked direclty to this module. This code is IP relative and hides the binding issues of virtual or physical calling. The function that gets dispatched has extra arguments that include the registered module global and a boolean flag to indicate if the system is in virutal mode. @@ -225,7 +215,7 @@ Arguments: Arg7 - Argument 7 ClassGuid/FunctionId defined Arg8 - Argument 8 ClassGuid/FunctionId defined -Returns: +Returns: Status of ClassGuid/FuncitonId --*/ diff --git a/EdkModulePkg/Library/EdkDxeSalLib/EdkDxeSalLib.msa b/EdkModulePkg/Library/EdkDxeSalLib/EdkDxeSalLib.msa index 9d90f42102..698fb5d978 100644 --- a/EdkModulePkg/Library/EdkDxeSalLib/EdkDxeSalLib.msa +++ b/EdkModulePkg/Library/EdkDxeSalLib/EdkDxeSalLib.msa @@ -54,8 +54,5 @@ EFI_SPECIFICATION_VERSION 0x00020000 EDK_RELEASE_VERSION 0x00020000 - - DxeSalLibConstructor - \ No newline at end of file diff --git a/EdkModulePkg/Library/EdkDxeSalLib/Ipf/EsalServiceLib.c b/EdkModulePkg/Library/EdkDxeSalLib/Ipf/EsalServiceLib.c index 9eb909dcd3..199b14becc 100644 --- a/EdkModulePkg/Library/EdkDxeSalLib/Ipf/EsalServiceLib.c +++ b/EdkModulePkg/Library/EdkDxeSalLib/Ipf/EsalServiceLib.c @@ -1,13 +1,13 @@ /*++ -Copyright (c) 2006, Intel Corporation -All rights reserved. This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +Copyright (c) 2006, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: @@ -58,16 +58,6 @@ DxeSalLibInitialize ( return EFI_SUCCESS; } -EFI_STATUS -EFIAPI -DxeSalLibConstructor ( - IN EFI_HANDLE ImageHandle, - IN EFI_SYSTEM_TABLE *SystemTable - ) -{ - return DxeSalLibInitialize (); -} - VOID EFIAPI DxeSalVirtualNotifyEvent ( @@ -83,10 +73,10 @@ Routine Description: Arguments: Event - The Event that is being processed - + Context - Event Context -Returns: +Returns: None @@ -115,11 +105,11 @@ Routine Description: Arguments: FunctionId - ID of function to register - ClassGuid - GUID of function class + ClassGuid - GUID of function class Function - Function to register under ClassGuid/FunctionId pair ModuleGlobal - Module global for Function. -Returns: +Returns: EFI_SUCCESS - If ClassGuid/FunctionId Function was registered. --*/ @@ -149,12 +139,12 @@ Routine Description: This function is boot service only! Arguments: - ClassGuid - GUID of function class + ClassGuid - GUID of function class ModuleGlobal - Module global for Function. - ... - SAL_INTERNAL_EXTENDED_SAL_PROC and FunctionId pairs. NULL + ... - SAL_INTERNAL_EXTENDED_SAL_PROC and FunctionId pairs. NULL indicates the end of the list. -Returns: +Returns: EFI_SUCCESS - All members of ClassGuid registered --*/ @@ -209,7 +199,7 @@ EfiCallEsalService ( Routine Description: - Call module that is not linked direclty to this module. This code is IP + Call module that is not linked direclty to this module. This code is IP relative and hides the binding issues of virtual or physical calling. The function that gets dispatched has extra arguments that include the registered module global and a boolean flag to indicate if the system is in virutal mode. @@ -225,7 +215,7 @@ Arguments: Arg7 - Argument 7 ClassGuid/FunctionId defined Arg8 - Argument 8 ClassGuid/FunctionId defined -Returns: +Returns: Status of ClassGuid/FuncitonId --*/ -- 2.39.2