]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Ported more of EdkCompatabilityPkg to ARM to support SCT port.
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 9 Jul 2010 00:07:30 +0000 (00:07 +0000)
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 9 Jul 2010 00:07:30 +0000 (00:07 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10641 6f19259b-4bc3-4df7-8a09-765794883524

EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/EfiDriverLib.inf
EdkCompatibilityPkg/Foundation/Library/Dxe/Include/Arm/CpuFuncs.h [new file with mode: 0755]
EdkCompatibilityPkg/Foundation/Library/Dxe/Include/Arm/ProcDep.h [new file with mode: 0755]
EdkCompatibilityPkg/Foundation/Library/Dxe/Include/LinkedList.h
EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c
EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Arm/PerformancePrimitives.c [new file with mode: 0755]
EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.inf

index 21140b6cb078931c7fc99b474d4ab3a330f0126f..a7a3c65c36da01a69c2f410466c265aef3ace43c 100644 (file)
@@ -55,6 +55,10 @@ COMPONENT_TYPE  = LIBRARY
 [sources.ebc]\r
   Ebc/PerformancePrimitives.c\r
 \r
+[sources.ARM]\r
+  Ebc/PerformancePrimitives.c\r
+\r
+\r
 [includes.common]\r
   $(EDK_SOURCE)/Foundation\r
   $(EDK_SOURCE)/Foundation/Framework\r
@@ -84,5 +88,6 @@ COMPONENT_TYPE  = LIBRARY
 \r
 [libraries.ipf]\r
   CpuIA64Lib\r
+  \r
 \r
 [nmake.common]\r
diff --git a/EdkCompatibilityPkg/Foundation/Library/Dxe/Include/Arm/CpuFuncs.h b/EdkCompatibilityPkg/Foundation/Library/Dxe/Include/Arm/CpuFuncs.h
new file mode 100755 (executable)
index 0000000..e030a7e
--- /dev/null
@@ -0,0 +1,24 @@
+/*++\r
+\r
+Copyright (c) 2004 - 2006, 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
+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
+  CpuFuncs.h\r
+\r
+Abstract:\r
+\r
+--*/\r
+\r
+#ifndef _CPU_FUNCS_H_\r
+#define _CPU_FUNCS_H_\r
+\r
+\r
+#endif\r
diff --git a/EdkCompatibilityPkg/Foundation/Library/Dxe/Include/Arm/ProcDep.h b/EdkCompatibilityPkg/Foundation/Library/Dxe/Include/Arm/ProcDep.h
new file mode 100755 (executable)
index 0000000..70f3375
--- /dev/null
@@ -0,0 +1,26 @@
+/*++\r
+\r
+Copyright (c) 2004, 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
+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
+  ProcDep.h\r
+\r
+Abstract:\r
+\r
+  IA-32 specific Runtime Lib code. At this time there is non. \r
+  IPF has different code due to extra API requirements.\r
+\r
+--*/\r
+\r
+#ifndef _PROC_DEP_H_\r
+#define _PROC_DEP_H_\r
+\r
+#endif\r
index ba8e2929bc0a7ed929ff9266ed614f29a1950b38..debaf30e79daeaef2fd857c355656ffa1fa759a2 100644 (file)
@@ -27,6 +27,7 @@ Abstract:
 #ifndef _LINKED_LIST_H_\r
 #define _LINKED_LIST_H_\r
 \r
+#ifndef _SHELL_LINKED_LIST_H_\r
 \r
 typedef struct _EFI_LIST_ENTRY {\r
   struct _EFI_LIST_ENTRY  *ForwardLink;\r
@@ -308,3 +309,4 @@ Returns:
 ;\r
 \r
 #endif\r
+#endif\r
index aa93c56b3f2b91b6973dc567bf42f48bf75e5667..934954bbc7bde21f5a24cbbb75d0964bc9268779 100644 (file)
@@ -68,6 +68,13 @@ COMPONENT_TYPE  = LIBRARY
 #  X64/EfiZeroMem.asm\r
   Math.c\r
 \r
+[sources.ARM]\r
+  EfiCopyMem.c\r
+  EfiSetMem.c\r
+  EfiZeroMem.c\r
+  Math.c\r
+\r
+\r
 [includes.common]\r
   $(EDK_SOURCE)/Foundation\r
   $(EDK_SOURCE)/Foundation/Framework\r
index bf142162ad3a33c14bb90ffa339ea172ebc25dba..4f79ecd173d4eac1e1efd8769f8c2d8d59687ddd 100644 (file)
@@ -332,8 +332,12 @@ Returns:
   // The first 12 * UINTN bytes of the string are really an \r
   // arguement stack to support varargs on the Format string.\r
   //\r
+#ifdef EFIARM\r
+  // It is not legal C code to case VA_LIST to a pointer. VA_LIST can \r
+  // be a structure. \r
+#else\r
   *Marker = (VA_LIST) (DebugInfo + 1);\r
   *Format = (CHAR8 *)(((UINT64 *)*Marker) + 12);\r
-\r
+#endif\r
   return TRUE;\r
 }\r
diff --git a/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Arm/PerformancePrimitives.c b/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Arm/PerformancePrimitives.c
new file mode 100755 (executable)
index 0000000..6b8995e
--- /dev/null
@@ -0,0 +1,48 @@
+/*++\r
+\r
+Copyright (c) 2005, 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
+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
+  PerformancePrimitives.c\r
+\r
+Abstract:\r
+\r
+  Support for Performance library\r
+\r
+--*/\r
+\r
+#include "TianoCommon.h"\r
+#include "CpuIA32.h"\r
+\r
+EFI_STATUS\r
+GetTimerValue (\r
+  OUT UINT64    *TimerValue\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  Get timer value.\r
+\r
+Arguments:\r
+\r
+  TimerValue  - Pointer to the returned timer value\r
+\r
+Returns:\r
+\r
+  EFI_SUCCESS - Successfully got timer value\r
+\r
+--*/\r
+{\r
+  // CPU does not have a timer for ARM....\r
+  ASSERT (FALSE);\r
+  return EFI_SUCCESS;\r
+}\r
index 7724415a14a9ba055cd84d15186ae2c5bde1a004..16abf04b55f5f0c79fcc2785c8a3d1ad5c5b7639 100644 (file)
@@ -72,7 +72,9 @@ COMPONENT_TYPE    = LIBRARY
   Ipf/HwAccess.s\r
   Ipf/PeiServicePointer.c\r
   \r
-  \r
+[sources.ARM]\r
+  Arm/PerformancePrimitives.c\r
+    \r
 [libraries.common]\r
   EdkGuidLib\r
   EfiCommonLib\r