2013-09-24 20:23:09 +02:00
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
; @file
|
|
|
|
; Sets the CR3 register for 64-bit paging
|
|
|
|
;
|
|
|
|
; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:07:22 +02:00
|
|
|
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
2013-09-24 20:23:09 +02:00
|
|
|
;
|
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
BITS 32
|
|
|
|
|
|
|
|
;
|
|
|
|
; Modified: EAX
|
|
|
|
;
|
|
|
|
SetCr3ForPageTables64:
|
|
|
|
|
|
|
|
;
|
2014-08-19 01:03:46 +02:00
|
|
|
; These pages are built into the ROM image in X64/PageTables.asm
|
2013-09-24 20:23:09 +02:00
|
|
|
;
|
2014-08-19 01:03:46 +02:00
|
|
|
mov eax, ADDR_OF(TopLevelPageDirectory)
|
2013-09-24 20:23:09 +02:00
|
|
|
mov cr3, eax
|
|
|
|
|
|
|
|
OneTimeCallRet SetCr3ForPageTables64
|
|
|
|
|