]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Support EBC for UefiPxeBcDxe module.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 5 Jun 2008 02:45:24 +0000 (02:45 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 5 Jun 2008 02:45:24 +0000 (02:45 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5330 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Network/UefiPxeBcDxe/Ebc/PxeArch.c [new file with mode: 0644]
MdeModulePkg/Universal/Network/UefiPxeBcDxe/Ebc/PxeArch.h [new file with mode: 0644]
MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf

diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/Ebc/PxeArch.c b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/Ebc/PxeArch.c
new file mode 100644 (file)
index 0000000..026dd24
--- /dev/null
@@ -0,0 +1,46 @@
+/** @file\r
+\r
+Copyright (c) 2007, 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
+  PxeArch.c\r
+\r
+Abstract:\r
+  Defines PXE Arch type\r
+\r
+\r
+**/\r
+\r
+\r
+#include "PxeArch.h"\r
+\r
+UINT16 mSysArch = 0;\r
+\r
+UINT16\r
+GetSysArch (\r
+  VOID\r
+  )\r
+{\r
+  if (mSysArch == 0) {\r
+    //\r
+    // This is first call\r
+    // Assign to invalid value\r
+    //\r
+    mSysArch = 0xFFFF;\r
+\r
+    //\r
+    // We do not know what is EBC architecture.\r
+    // Maybe we can try to locate DebugSupport protocol to get ISA.\r
+    // TBD now.\r
+    //\r
+  }\r
+\r
+  return mSysArch;\r
+}\r
diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/Ebc/PxeArch.h b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/Ebc/PxeArch.h
new file mode 100644 (file)
index 0000000..8935067
--- /dev/null
@@ -0,0 +1,36 @@
+/** @file\r
+\r
+Copyright (c) 2007, 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
+  PxeArch.h\r
+\r
+Abstract:\r
+  Defines PXE Arch type\r
+\r
+\r
+**/\r
+\r
+#ifndef _EFI_PXE_ARCH_H_\r
+#define _EFI_PXE_ARCH_H_\r
+\r
+//\r
+// warning #175: subscript out of range\r
+//\r
+#pragma warning (disable: 175)\r
+\r
+#define SYS_ARCH GetSysArch()\r
+\r
+UINT16\r
+GetSysArch (\r
+  VOID\r
+  );\r
+\r
+#endif\r
index 24b916cd455b116946b5c345a4ade94ec170eb47..24943b139ee6777cb053c70b31386adb0a4ffcb8 100644 (file)
@@ -1,8 +1,7 @@
 #/** @file\r
 # Component name for module UefiPxeBc\r
 #\r
-# FIX ME!\r
-# Copyright (c) 2007, Intel Corporation. All rights reserved.\r
+# Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.\r
 #\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
@@ -30,7 +29,7 @@
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-#  VALID_ARCHITECTURES           = IA32 X64 IPF\r
+#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
 #\r
 \r
 \r
@@ -56,6 +55,9 @@
 [Sources.IPF]\r
   Ipf/PxeArch.h\r
 \r
+[Sources.EBC]\r
+  Ebc/PxeArch.h\r
+  Ebc/PxeArch.c\r
 \r
 [Packages]\r
   MdePkg/MdePkg.dec\r