UefiCpuPkg/ResetVector: Combine PageTables1G.asm and PageTables2M.asm

Combine PageTables1G.asm and PageTables2M.asm to reuse code.

Cc: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Tested-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Cc: Debkumar De <debkumar.de@intel.com>
Cc: Catharine West <catharine.west@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
This commit is contained in:
Liu, Zhiguang
2023-05-08 16:15:02 +08:00
committed by mergify[bot]
parent c19e3f578f
commit 0fba57da65
3 changed files with 33 additions and 76 deletions

View File

@@ -2,7 +2,7 @@
; @file
; This file includes all other code files to assemble the reset vector code
;
; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>
; Copyright (c) 2008 - 2023, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;------------------------------------------------------------------------------
@@ -38,11 +38,7 @@
%include "PageTables.inc"
%ifdef ARCH_X64
%ifdef PAGE_TABLE_1G
%include "X64/PageTables1G.asm"
%else
%include "X64/PageTables2M.asm"
%endif
%include "X64/PageTables.asm"
%endif
%ifdef DEBUG_PORT80