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