]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ipf/Non-existing.c
1. Added Non-existing.c in BaseLib to assert no invocations of SwitchStack() on IPF.
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ipf / Non-existing.c
1 /** @file
2 Non-existing BaseLib functions on Ipf
3
4 Copyright (c) 2006, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 Module Name: Non-existing.c
14
15 **/
16
17 #include "../BaseLibInternals.h"
18 /**
19 Transfers control to a function starting with a new stack.
20
21 Transfers control to the function specified by EntryPoint using the new stack
22 specified by NewStack and passing in the parameters specified by Context1 and
23 Context2. Context1 and Context2 are optional and may be NULL. The function
24 EntryPoint must never return.
25
26 If EntryPoint is NULL, then ASSERT().
27 If NewStack is NULL, then ASSERT().
28
29 @param EntryPoint A pointer to function to call with the new stack.
30 @param Context1 A pointer to the context to pass into the EntryPoint
31 function.
32 @param Context2 A pointer to the context to pass into the EntryPoint
33 function.
34 @param NewStack A pointer to the new stack to use for the EntryPoint
35 function.
36
37 **/
38 VOID
39 EFIAPI
40 InternalSwitchStack (
41 IN SWITCH_STACK_ENTRY_POINT EntryPoint,
42 IN VOID *Context1, OPTIONAL
43 IN VOID *Context2, OPTIONAL
44 IN VOID *NewStack
45 )
46 {
47 //
48 // This version of this function does not actually change the stack pointer
49 // This is to support compilation of CPU types that do not support assemblers
50 // such as EBC
51 //
52 ASSERT (FALSE);
53 }