]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/Non-existing.c
b1a8dae7383df7b0f0db8addfcdf11b668889067
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / Non-existing.c
1 /** @file
2 Non-existing BaseLib functions on Ia32
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 //
18 // Include common header file for this module.
19 //
20
21
22 #include "../BaseLibInternals.h"
23
24
25 /**
26 Disables the 64-bit paging mode on the CPU.
27
28 Disables the 64-bit paging mode on the CPU and returns to 32-bit protected
29 mode. This function assumes the current execution mode is 64-paging mode.
30 This function is only available on X64. After the 64-bit paging mode is
31 disabled, control is transferred to the function specified by EntryPoint
32 using the new stack specified by NewStack and passing in the parameters
33 specified by Context1 and Context2. Context1 and Context2 are optional and
34 may be 0. The function EntryPoint must never return.
35
36 @param Cs The 16-bit selector to load in the CS before EntryPoint
37 is called. The descriptor in the GDT that this selector
38 references must be setup for 32-bit protected mode.
39 @param EntryPoint The 64-bit virtual address of the function to call with
40 the new stack after paging is disabled.
41 @param Context1 The 64-bit virtual address of the context to pass into
42 the EntryPoint function as the first parameter after
43 paging is disabled.
44 @param Context2 The 64-bit virtual address of the context to pass into
45 the EntryPoint function as the second parameter after
46 paging is disabled.
47 @param NewStack The 64-bit virtual address of the new stack to use for
48 the EntryPoint function after paging is disabled.
49
50 **/
51 VOID
52 EFIAPI
53 InternalX86DisablePaging64 (
54 IN UINT16 CodeSelector,
55 IN UINT32 EntryPoint,
56 IN UINT32 Context1, OPTIONAL
57 IN UINT32 Context2, OPTIONAL
58 IN UINT32 NewStack
59 )
60 {
61 //
62 // This function cannot work on IA32 platform
63 //
64 ASSERT (FALSE);
65 }