From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 6AF307803D1 for ; Wed, 20 Mar 2024 08:43:32 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=7n8Qs/rAGodjsDW/+oZidqHm/SBTbFRntX6zIx0Fa4o=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1710924211; v=1; b=pRvk0NMSaRWS1yGHsYzRwKzNA6P1XzrbXUSE1NmsPyNeSidkrfI6II3SIhNXvAJO2+FsE5cY Atqgpkdw+874pWhw582yeeJSBTGi3ZG0FA6g9ih8+CGxhaKisY0g/uk3s0llY/g4wcbK92IsjDK w3si3HNeDrGqcQE5RP8Ac2KIriNyg0s7B1PWKGdhph6BemOSAAMLmog4aACBffY5/hYCBm3lF20 4votD2ymqmCLD7nBkGtaPgTUQsmbaWVvSiUUuxLwP0ACCQ1T9YarAQ2JwlK8/t6zM7l+FjIx6qk WyvJT0J62RRvMVrShQL9a6C2JvBEoiXgSm7qh05MuqkMA== X-Received: by 127.0.0.2 with SMTP id GN18YY7687511xFUosVLGSLS; Wed, 20 Mar 2024 01:43:31 -0700 X-Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web10.38924.1710924209835050760 for ; Wed, 20 Mar 2024 01:43:30 -0700 X-Received: from loongson.cn (unknown [10.2.9.245]) by gateway (Coremail) with SMTP id _____8BxSOivofplMC0bAA--.45611S3; Wed, 20 Mar 2024 16:43:27 +0800 (CST) X-Received: from code-server.gen (unknown [10.2.9.245]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxZMyuofplHUBeAA--.57606S2; Wed, 20 Mar 2024 16:43:26 +0800 (CST) From: "Chao Li" To: devel@edk2.groups.io Cc: Ray Ni , Rahul Kumar , Gerd Hoffmann Subject: [edk2-devel] [PATCH v2 08/13] UefiCpuPkg: Added a new PCD named PcdCpuExceptionVectorBaseAddress Date: Wed, 20 Mar 2024 16:43:25 +0800 Message-Id: <20240320084325.276665-1-lichao@loongson.cn> In-Reply-To: <20240320084152.268323-1-lichao@loongson.cn> References: <20240320084152.268323-1-lichao@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxZMyuofplHUBeAA--.57606S2 X-CM-SenderInfo: xolfxt3r6o00pqjv00gofq/1tbiAQACCGX5TOgKgAAVss X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Wed, 20 Mar 2024 01:43:30 -0700 Reply-To: devel@edk2.groups.io,lichao@loongson.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: RCdtkcVJkecRI6euY1lzO3Yvx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=pRvk0NMS; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Added PcdCpuExceptionVectorBaseAddress use for storing the CPU exception vector base address. This PCD can be be populated at build time or changed at runtime. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4734 Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann Signed-off-by: Chao Li Acked-by: Gerd Hoffmann --- UefiCpuPkg/UefiCpuPkg.dec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index ca744fab55..a23a90ec99 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -3,6 +3,7 @@ # # Copyright (c) 2007 - 2023, Intel Corporation. All rights reserved.
# Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.
+# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -389,6 +390,10 @@ [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx] # @Prompt Enable performance collecting when processor trace is enabled. gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTracePerformanceCollecting|FALSE|BOOLEAN|0x60000020 + ## This PCD Contains the pointer to a CPU exception vector base address. + # @Prompt The pointer to a CPU exception vector base address. + gUefiCpuPkgTokenSpaceGuid.PcdCpuExceptionVectorBaseAddress|0x0|UINT64|0x60000022 + [PcdsFixedAtBuild.X64, PcdsPatchableInModule.X64, PcdsDynamic.X64, PcdsDynamicEx.X64] ## Indicate access to non-SMRAM memory is restricted to reserved, runtime and ACPI NVS type after SmmReadyToLock. # MMIO access is always allowed regardless of the value of this PCD. -- 2.27.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116924): https://edk2.groups.io/g/devel/message/116924 Mute This Topic: https://groups.io/mt/105041095/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-