]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/Non-existing.c
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / Non-existing.c
1 /** @file
2 Non-existing BaseLib functions on Ia32
3
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include <Library/DebugLib.h>
10
11 /**
12 Disables the 64-bit paging mode on the CPU.
13
14 Disables the 64-bit paging mode on the CPU and returns to 32-bit protected
15 mode. This function assumes the current execution mode is 64-paging mode.
16 This function is only available on x64. After the 64-bit paging mode is
17 disabled, control is transferred to the function specified by EntryPoint
18 using the new stack specified by NewStack and passing in the parameters
19 specified by Context1 and Context2. Context1 and Context2 are optional and
20 may be 0. The function EntryPoint must never return.
21
22 @param CodeSelector The 16-bit selector to load in the CS before EntryPoint
23 is called. The descriptor in the GDT that this selector
24 references must be setup for 32-bit protected mode.
25 @param EntryPoint The 64-bit virtual address of the function to call with
26 the new stack after paging is disabled.
27 @param Context1 The 64-bit virtual address of the context to pass into
28 the EntryPoint function as the first parameter after
29 paging is disabled.
30 @param Context2 The 64-bit virtual address of the context to pass into
31 the EntryPoint function as the second parameter after
32 paging is disabled.
33 @param NewStack The 64-bit virtual address of the new stack to use for
34 the EntryPoint function after paging is disabled.
35
36 **/
37 VOID
38 EFIAPI
39 InternalX86DisablePaging64 (
40 IN UINT16 CodeSelector,
41 IN UINT32 EntryPoint,
42 IN UINT32 Context1, OPTIONAL
43 IN UINT32 Context2, OPTIONAL
44 IN UINT32 NewStack
45 )
46 {
47 //
48 // This function cannot work on IA32 platform
49 //
50 ASSERT (FALSE);
51 }