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