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