--- /dev/null
+/** @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
--- /dev/null
+/** @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
#/** @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
#\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
[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