3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Ipf-specifc functionality for DxeLoad.
25 CreateArchSpecificHobs (
26 OUT EFI_PHYSICAL_ADDRESS
*BspStore
32 Creates architecture-specific HOBs.
34 Note: New parameters should NOT be added for any HOBs that are added to this
35 function. BspStore is a special case because it is required for the
36 call to SwitchStacks() in DxeLoad().
40 BspStore - The address of the BSP Store for those architectures that need
45 EFI_SUCCESS - The HOBs were created successfully.
53 ASSERT (NULL
!= BspStore
);
56 // Allocate 16KB for the BspStore
58 Status
= PeiServicesAllocatePages (EfiBootServicesData
, EFI_SIZE_TO_PAGES (BSP_STORE_SIZE
), BspStore
);
59 if (EFI_ERROR (Status
)) {
73 Transfers control to a function starting with a new stack.
75 Transfers control to the function specified by EntryPoint using the new stack
76 specified by NewStack and passing in the parameters specified by Context1 and
77 Context2. Context1 and Context2 are optional and may be NULL. The function
78 EntryPoint must never return.
80 If EntryPoint is NULL, then ASSERT().
81 If NewStack is NULL, then ASSERT().
83 @param EntryPoint A pointer to function to call with the new stack.
84 @param Context1 A pointer to the context to pass into the EntryPoint
86 @param Context2 A pointer to the context to pass into the EntryPoint
88 @param NewStack A pointer to the new stack to use for the EntryPoint
90 @param NewBsp A pointer to the new BSP for the EntryPoint on IPF. It's
91 Reserved on other architectures.
97 IN SWITCH_STACK_ENTRY_POINT EntryPoint
,
98 IN VOID
*Context1
, OPTIONAL
99 IN VOID
*Context2
, OPTIONAL
104 AsmSwitchStackAndBackingStore (