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