]>
Commit | Line | Data |
---|---|---|
a8fb9d68 | 1 | /** @file\r |
f737cfb9 | 2 | Defines PXE Arch type.\r |
3 | \r | |
4 | Copyright (c) 2007, Intel Corporation.<BR>\r | |
a8fb9d68 | 5 | All rights reserved. This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
a8fb9d68 | 13 | **/\r |
14 | \r | |
15 | \r | |
16 | #include "PxeArch.h"\r | |
17 | \r | |
18 | UINT16 mSysArch = 0;\r | |
f737cfb9 | 19 | /**\r |
20 | Get the system architecture type.\r | |
21 | \r | |
22 | @return system architecture type.\r | |
a8fb9d68 | 23 | \r |
f737cfb9 | 24 | **/\r |
a8fb9d68 | 25 | UINT16\r |
26 | GetSysArch (\r | |
27 | VOID\r | |
28 | )\r | |
29 | {\r | |
30 | if (mSysArch == 0) {\r | |
31 | //\r | |
32 | // This is first call\r | |
33 | // Assign to invalid value\r | |
34 | //\r | |
35 | mSysArch = 0xFFFF;\r | |
36 | \r | |
37 | //\r | |
38 | // We do not know what is EBC architecture.\r | |
39 | // Maybe we can try to locate DebugSupport protocol to get ISA.\r | |
40 | // TBD now.\r | |
41 | //\r | |
42 | }\r | |
43 | \r | |
44 | return mSysArch;\r | |
45 | }\r |