]>
Commit | Line | Data |
---|---|---|
cf1d4549 JY |
1 | /** @file\r |
2 | Sample to provide platform init function.\r | |
3 | \r | |
4 | Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r | |
5 | 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 | |
13 | **/\r | |
14 | \r | |
15 | \r | |
16 | #include <PiPei.h>\r | |
17 | #include <Library/DebugLib.h>\r | |
18 | #include <Library/SerialPortLib.h>\r | |
19 | \r | |
20 | /**\r | |
21 | Platform initialization.\r | |
22 | \r | |
23 | @param[in] FspHobList HobList produced by FSP.\r | |
24 | @param[in] StartOfRange Start of temporary RAM.\r | |
25 | @param[in] EndOfRange End of temporary RAM.\r | |
26 | **/\r | |
27 | VOID\r | |
28 | EFIAPI\r | |
29 | PlatformInit (\r | |
30 | IN VOID *FspHobList,\r | |
31 | IN VOID *StartOfRange,\r | |
32 | IN VOID *EndOfRange\r | |
33 | )\r | |
34 | {\r | |
35 | //\r | |
36 | // Platform initialization\r | |
37 | // Enable Serial port here\r | |
38 | //\r | |
39 | SerialPortInitialize ();\r | |
40 | \r | |
41 | DEBUG ((DEBUG_INFO, "PrintPeiCoreEntryPointParam in PlatformInit\n"));\r | |
42 | DEBUG ((DEBUG_INFO, "FspHobList - 0x%x\n", FspHobList));\r | |
43 | DEBUG ((DEBUG_INFO, "StartOfRange - 0x%x\n", StartOfRange));\r | |
44 | DEBUG ((DEBUG_INFO, "EndOfRange - 0x%x\n", EndOfRange));\r | |
45 | }\r |