From 3d523c4cd84bcf85b4908e8df7ce2b26332be88f Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Mon, 17 Jun 2024 12:55:21 +0530 Subject: cpu/x86: Rename paging structure variables for clarity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The following variables have been renamed: * PDPE_table -> PDPT (Page Directory Pointer Table) * PDE_tables -> PDT (Page Directory Table) This change improves the consistency and clarity of the code as per AMD Architecture Programmer's Manual document. PML4 -> PDPT -> PDT -> 2MB Physical Page TEST=Able to build and boot google/rex64. Change-Id: Ib57d1d54c2c1f4fcce2315b508ed7643251a20c5 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/83101 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Jérémy Compostella --- src/cpu/x86/64bit/pt.S | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cpu/x86') diff --git a/src/cpu/x86/64bit/pt.S b/src/cpu/x86/64bit/pt.S index 67e4b1b8bf..4b2f3c8163 100644 --- a/src/cpu/x86/64bit/pt.S +++ b/src/cpu/x86/64bit/pt.S @@ -20,16 +20,16 @@ .global PM4LE .align 4096 PM4LE: -.quad _GEN_DIR(PDPE_table) +.quad _GEN_DIR(PDPT) .align 4096 -PDE_tables: /* identity map 2MiB pages */ +PDT: /* identity map 2MiB pages */ .rept 2048 -.quad _GEN_PAGE(0x200000 * ((. - PDE_tables) >> 3)) +.quad _GEN_PAGE(0x200000 * ((. - PDT) >> 3)) .endr .align 4096 -PDPE_table: /* Point to PDE */ +PDPT: /* Point to PDT */ .rept 4 -.quad _GEN_DIR(PDE_tables + 4096 * ((. - PDPE_table) >> 3)) +.quad _GEN_DIR(PDT + 4096 * ((. - PDPT) >> 3)) .endr -- cgit v1.2.3