]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/ResetVector/Vtf0/Ia32/PageTables64.asm
UefiCpuPkg VTF0 X64: Build page tables in NASM code
[mirror_edk2.git] / UefiCpuPkg / ResetVector / Vtf0 / Ia32 / PageTables64.asm
CommitLineData
a63f2e24
JJ
1;------------------------------------------------------------------------------\r
2; @file\r
3; Sets the CR3 register for 64-bit paging\r
4;\r
5; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>\r
6; This program and the accompanying materials\r
7; are licensed and made available under the terms and conditions of the BSD License\r
8; which accompanies this distribution. The full text of the license may be found at\r
9; http://opensource.org/licenses/bsd-license.php\r
10;\r
11; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13;\r
14;------------------------------------------------------------------------------\r
15\r
16BITS 32\r
17\r
18;\r
19; Modified: EAX\r
20;\r
21SetCr3ForPageTables64:\r
22\r
23 ;\r
eee1d2ca 24 ; These pages are built into the ROM image in X64/PageTables.asm\r
a63f2e24 25 ;\r
eee1d2ca 26 mov eax, ADDR_OF(TopLevelPageDirectory)\r
a63f2e24
JJ
27 mov cr3, eax\r
28\r
29 OneTimeCallRet SetCr3ForPageTables64\r
30\r