]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/ResetVector/Vtf0/Ia32/PageTables64.asm
UefiCpuPkg/ResetVector/Vtf0: Move Page Table/CR3 setting to a new file
[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
24 ; These pages are built into the ROM image by Tools/FixupForRawSection.py\r
25 ;\r
26 mov eax, ((ADDR_OF_START_OF_RESET_CODE & ~0xfff) - 0x1000)\r
27 mov cr3, eax\r
28\r
29 OneTimeCallRet SetCr3ForPageTables64\r
30\r