From nobody Mon Feb 9 02:28:24 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+82340+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+82340+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1634634534; cv=none; d=zohomail.com; s=zohoarc; b=UXpu8exEiYqCSuyDuv3BpJUAhzlWWowWL8/lkonlOMzlG6pI1aJtETD9oCnwCGw+NSp9wPfsuS0bY8rSbkBY9PqcB6VYroT29jlF0+pRYc5Oe2GSLT9AN3e2qlilRe3DRHdrIWjkVHzWEPplbXJ2dtofr0iUpssd01wGH+fBvzc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634634534; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=U8kNWdCJBeojw0+eKEAs3183SDvnUuAczbLgDXWTbdk=; b=NrrPjW0auBrC/0CKfhWV2ySpnsxtFHEP464XeVg8D9cKAPEkMKr04AE7a1B4nwkJRX3TAJ671VIIP9D0+ceLw0dNzxL/EE29FDvEKS291/7VQ6Em/TD8tFzgDv2nQmkB/AVKYp9qFNDJKEBozpWDzwX57EGXVnRhsISiZDAs2yg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+82340+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1634634534561388.21573991495234; Tue, 19 Oct 2021 02:08:54 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Ts3pYY1788612xb7ukNFvBF6; Tue, 19 Oct 2021 02:08:54 -0700 X-Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web10.7404.1634634523912864612 for ; Tue, 19 Oct 2021 02:08:53 -0700 X-Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19J8CFAF020969; Tue, 19 Oct 2021 09:08:43 GMT X-Received: from g9t5009.houston.hpe.com (g9t5009.houston.hpe.com [15.241.48.73]) by mx0a-002e3701.pphosted.com with ESMTP id 3bsta50ekr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Oct 2021 09:08:43 +0000 X-Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g9t5009.houston.hpe.com (Postfix) with ESMTP id 1067455; Tue, 19 Oct 2021 09:08:43 +0000 (UTC) X-Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 01D0A4B; Tue, 19 Oct 2021 09:08:41 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Sunil V L , Daniel Schaefer Subject: [edk2-devel] [edk2-platforms][PATCH 22/30] RiscVPlatformPkg/Sec: Add more comments to Secmain.c Date: Tue, 19 Oct 2021 16:09:59 +0800 Message-Id: <20211019081007.31165-23-abner.chang@hpe.com> In-Reply-To: <20211019081007.31165-1-abner.chang@hpe.com> References: <20211019081007.31165-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-GUID: 1R0rKjcdjI_EUuVxwSePhYixzDie2WIb X-Proofpoint-ORIG-GUID: 1R0rKjcdjI_EUuVxwSePhYixzDie2WIb X-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abner.chang@hpe.com X-Gm-Message-State: gTkE2UpzOj8VDssdkb16k2Ppx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1634634534; bh=40RGYEtHXwJYOf2GU5tCBB9k0OnVl74kJFv528sZBGs=; h=Cc:Date:From:Reply-To:Subject:To; b=fG8TsI7DRCJprNYZZsHPzAmvtJdaf62Ln61mqWIOLKGcLHq1PgUFYH0l7mRX4mtMJwN 5VrKugKwZ9+JoAySeCt/EYC9JbPKk3SaNvO/fOzhXT75LYO3g7FHHLD3TDbIWwYE1P3O+ w/7pbCjfQh0ifd38Bs1UH1bOxR6UJg2U0KM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1634634536070100009 Content-Type: text/plain; charset="utf-8" Add more comments to SecMain.c Cc: Sunil V L Cc: Daniel Schaefer Signed-off-by: Abner Chang --- Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c b/Platform= /RISC-V/PlatformPkg/Universal/Sec/SecMain.c index 9b162fb3b6..93ff8a598d 100644 --- a/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c +++ b/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c @@ -628,7 +628,10 @@ GetDeviceTreeAddress ( EFI_COMMON_SECTION_HEADER *FoundSection; =20 if (FixedPcdGet32 (PcdDeviceTreeAddress)) { - DEBUG ((DEBUG_INFO, "Use fixed address of DBT from PcdDeviceTreeAddr= ess.\n")); + DEBUG ((DEBUG_INFO, "Use fixed address of DBT from PcdDeviceTreeAddr= ess 0x%x.\n", FixedPcdGet32 (PcdDeviceTreeAddress))); + // + // Device tree address is pointed by PcdDeviceTreeAddress. + // return (VOID *)*((unsigned long *)FixedPcdGet32 (PcdDeviceTreeAddres= s)); } else if (FixedPcdGet32 (PcdRiscVDtbFvBase)) { DEBUG ((DEBUG_INFO, "Use DBT FV\n")); @@ -720,7 +723,7 @@ VOID EFIAPI SecCoreStartUpWithStack( struct sbi_platform *ThisSbiPlatform; EFI_RISCV_FIRMWARE_CONTEXT_HART_SPECIFIC *HartFirmwareContext; =20 - DEBUG ((DEBUG_INFO, "HART ID: 0x%x enter SecCoreStartUpWithStack\n", Har= tId)); + //DEBUG ((DEBUG_INFO, "HART ID: 0x%x enter SecCoreStartUpWithStack\n", H= artId)); =20 // // Setup EFI_RISCV_FIRMWARE_CONTEXT_HART_SPECIFIC for each hart. @@ -750,7 +753,7 @@ VOID EFIAPI SecCoreStartUpWithStack( DEBUG ((DEBUG_ERROR, "Platform Device Tree is not found\n")); ASSERT (FALSE); } - + DEBUG ((DEBUG_INFO, "Device Tree at 0x%x\n", Scratch->next_arg1)); DEBUG ((DEBUG_INFO, "HART number: 0x%x\n", ThisSbiPlatform->hart_count= )); DEBUG ((DEBUG_INFO, "HART index to HART ID:\n")); for (HardIndex =3D 0; HardIndex < ThisSbiPlatform->hart_count; HardInd= ex ++) { --=20 2.31.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#82340): https://edk2.groups.io/g/devel/message/82340 Mute This Topic: https://groups.io/mt/86435695/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-