]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/ResetVector/Vtf0/Ia32/PageTables64.asm
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / UefiCpuPkg / ResetVector / Vtf0 / Ia32 / PageTables64.asm
1 ;------------------------------------------------------------------------------
2 ; @file
3 ; Sets the CR3 register for 64-bit paging
4 ;
5 ; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>
6 ; SPDX-License-Identifier: BSD-2-Clause-Patent
7 ;
8 ;------------------------------------------------------------------------------
9
10 BITS 32
11
12 ;
13 ; Modified: EAX
14 ;
15 SetCr3ForPageTables64:
16
17 ;
18 ; These pages are built into the ROM image in X64/PageTables.asm
19 ;
20 mov eax, ADDR_OF(TopLevelPageDirectory)
21 mov cr3, eax
22
23 OneTimeCallRet SetCr3ForPageTables64
24