]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.c
OvmfPkg: Add CsmSupportLib
[mirror_edk2.git] / OvmfPkg / Csm / CsmSupportLib / CsmSupportLib.c
diff --git a/OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.c b/OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.c
new file mode 100644 (file)
index 0000000..c0b0252
--- /dev/null
@@ -0,0 +1,38 @@
+/** @file\r
+  Platform CSM Support Library\r
+\r
+  Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>\r
+\r
+  This program and the accompanying materials are\r
+  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
+**/\r
+\r
+#include "CsmSupportLib.h"\r
+\r
+/**\r
+  The constructor function for the platform CSM support library\r
+\r
+  @retval EFI_SUCCESS   The constructor always returns RETURN_SUCCESS.\r
+\r
+**/\r
+RETURN_STATUS\r
+EFIAPI\r
+CsmSupportLibConstructor (\r
+  VOID\r
+  )\r
+{\r
+  LegacyRegionInit ();\r
+\r
+  LegacyInterruptInstall ();\r
+\r
+  LegacyBiosPlatformInstall ();\r
+\r
+  return EFI_SUCCESS;\r
+}\r
+\r