From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.102452.1683533720845014649 for ; Mon, 08 May 2023 01:15:20 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=b5PtvRRk; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: zhiguang.liu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683533720; x=1715069720; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Hfa9y10SiY2hHCiANP7DuDQ9cMFCuj7LJkFqYdmyX4U=; b=b5PtvRRkZ3E1J9jvN6588Wrny3rTyZh0f7elnMO2lS93U2k1Z9ysMJ4I MC9Sl36FJhyAN61RXRLRf5G7VN4ptno90Rn74Sb/O6LzyE8PmnCZcPir2 OSbSf2yFrCWUS6ftUwuoD0YBjmgICFA0Hv6R1USsTXNSwEkcnNH5Hg3K+ iA3gcMbpcQ078Oa1yEn4sMqAckfGFRFDHhLopiMb+9tbmLn9byfuDCApK x14LdlNKCUBnWvHDArnqRlKRdGOG3vFmyM+GLHrrMZWzXEDFWrkHRuYKZ JJKk6MTxe0qUpaJSgzjcEuRru/pzt4zHUiq99nGWZ+bowHgqDXgfTcu/7 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10703"; a="329948085" X-IronPort-AV: E=Sophos;i="5.99,258,1677571200"; d="scan'208";a="329948085" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 01:15:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10703"; a="731218552" X-IronPort-AV: E=Sophos;i="5.99,258,1677571200"; d="scan'208";a="731218552" Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.151]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 01:15:19 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Zhiguang Liu Subject: [PATCH v5 0/5] UefiCpuPkg/ResetVector: Refine page table creation, and support 5 Level paging Date: Mon, 8 May 2023 16:14:59 +0800 Message-Id: <20230508081504.1067-1-zhiguang.liu@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch set simplify the page table creation code, remove some hard-code, combine files and support 5 Level paging. V4: Refine comments and update below macro names: PG_NLE -> PAGE_NLE PTE_2MB -> PDE_2MB PDP_1G -> PDPTE_1GB PAGE_BLP_ATTR -> PAGE_BLE_ATTR No code logic impact V5: Update below macro names: PDE_2MB -> PAGE_PDE_2MB PDPTE_1GB -> PAGE_PDPTE_1GB No code logic impact Zhiguang Liu (5): UefiCpuPkg/ResetVector: Rename macros about page table. UefiCpuPkg/ResetVector: Simplify page table creation in ResetVector UefiCpuPkg/ResetVector: Combine PageTables1G.asm and PageTables2M.asm UefiCpuPkg/ResetVector: Modify Page Table in ResetVector UefiCpuPkg/ResetVector: Support 5 level page table in ResetVector .../ResetVector/Vtf0/Ia32/Flat32ToFlat64.asm | 25 ++++- .../ResetVector/Vtf0/Ia32/PageTables64.asm | 24 ----- UefiCpuPkg/ResetVector/Vtf0/Vtf0.nasmb | 9 +- .../ResetVector/Vtf0/X64/PageTables.asm | 93 +++++++++++++++++++ .../ResetVector/Vtf0/X64/PageTables1G.asm | 53 ----------- .../ResetVector/Vtf0/X64/PageTables2M.asm | 60 ------------ 6 files changed, 118 insertions(+), 146 deletions(-) delete mode 100644 UefiCpuPkg/ResetVector/Vtf0/Ia32/PageTables64.asm create mode 100644 UefiCpuPkg/ResetVector/Vtf0/X64/PageTables.asm delete mode 100644 UefiCpuPkg/ResetVector/Vtf0/X64/PageTables1G.asm delete mode 100644 UefiCpuPkg/ResetVector/Vtf0/X64/PageTables2M.asm -- 2.31.1.windows.1