From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=bwcjs1JW; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0926d272d9=abner.chang@hpe.com) 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=Aa5VMpFVki0y/9ERb6Y5UrWAmmkhxbwkPLH0kGLL11Y=; b=bwcjs1JWtXWLqjwqzfJua+AnVS1y21tBmiS6drqvYNosorwli+CL8z8pY846hlcMhpRK wbxLfMQmmGF2PeLThSTysOsF9hWfRAQbkNmKcN8/pCRlKYhrEJvJM6gpWSLOQdeW/dZa LM7Ihgy47MLaYZ0ogsTF1/Jp1YmM+9syFhfNmzXGpCbecnYqBdLgGMzL7rEmffX7BJ7R PpNpIhrJBO08PRAJx//fte3vFo4ekzce3EYLsIwJn2lUzhUQXwCg3/cOKyIXEssvkWQQ fjnSFUVzFly3Q1S7z0a1RyUyCWHgEVKenDiyAjHx6EHb/utnt+gmK4uApjGigDBP6BN0 NQ== 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 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) 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-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> X-Mailer: git-send-email 2.31.1 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 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-18_07,2021-10-18_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 clxscore=1015 adultscore=0 priorityscore=1501 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110190056 Content-Transfer-Encoding: quoted-printable 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;=0D =0D if (FixedPcdGet32 (PcdDeviceTreeAddress)) {=0D - DEBUG ((DEBUG_INFO, "Use fixed address of DBT from PcdDeviceTreeAddr= ess.\n"));=0D + DEBUG ((DEBUG_INFO, "Use fixed address of DBT from PcdDeviceTreeAddr= ess 0x%x.\n", FixedPcdGet32 (PcdDeviceTreeAddress)));=0D + //=0D + // Device tree address is pointed by PcdDeviceTreeAddress.=0D + //=0D return (VOID *)*((unsigned long *)FixedPcdGet32 (PcdDeviceTreeAddres= s));=0D } else if (FixedPcdGet32 (PcdRiscVDtbFvBase)) {=0D DEBUG ((DEBUG_INFO, "Use DBT FV\n"));=0D @@ -720,7 +723,7 @@ VOID EFIAPI SecCoreStartUpWithStack( struct sbi_platform *ThisSbiPlatform;=0D EFI_RISCV_FIRMWARE_CONTEXT_HART_SPECIFIC *HartFirmwareContext;=0D =0D - DEBUG ((DEBUG_INFO, "HART ID: 0x%x enter SecCoreStartUpWithStack\n", Har= tId));=0D + //DEBUG ((DEBUG_INFO, "HART ID: 0x%x enter SecCoreStartUpWithStack\n", H= artId));=0D =0D //=0D // Setup EFI_RISCV_FIRMWARE_CONTEXT_HART_SPECIFIC for each hart.=0D @@ -750,7 +753,7 @@ VOID EFIAPI SecCoreStartUpWithStack( DEBUG ((DEBUG_ERROR, "Platform Device Tree is not found\n"));=0D ASSERT (FALSE);=0D }=0D -=0D + DEBUG ((DEBUG_INFO, "Device Tree at 0x%x\n", Scratch->next_arg1));=0D DEBUG ((DEBUG_INFO, "HART number: 0x%x\n", ThisSbiPlatform->hart_count= ));=0D DEBUG ((DEBUG_INFO, "HART index to HART ID:\n"));=0D for (HardIndex =3D 0; HardIndex < ThisSbiPlatform->hart_count; HardInd= ex ++) {=0D --=20 2.31.1