From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web11.3754.1641630358675775138 for ; Sat, 08 Jan 2022 00:25:58 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=Kh2GCTJc; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=000704d8ca=abner.chang@hpe.com) Received: from pps.filterd (m0148664.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20852bCi025471 for ; Sat, 8 Jan 2022 08:25:57 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=9mBLmeB0hfvb0lUnLE97vgTho4+Bd514oG7H6Y1uqXg=; b=Kh2GCTJcyaLzVAE+JD6/mwpcC1AhvFJLRU8otCrkK8XdU8iSWL2XZYLLCdCARrGpzNQM 7DQJFYAJVbLnPoV5F4XZMLey8H/NMjbeu4wpm7lopQddEM0f+/um4IorivcaBB1Nxz43 CbJhFb/qYRWZWtSKnAIWCgQq70TaIbnjUjtN50eBSl1lFUsiYM2Ohgg/l8jNgi1duHu5 7aWcjSZsPGbjvz1xghhbivvwph6KTxgPmDzMwpApTRp9UOHBFZ0WdglSC4mPjUdnENXN RNTUWt6MJFgRnNoTh4+Acy7vgmS2SROwTn+3Hp6N/PgZWMThCJxbHAefNZ2Z3mhvBVXU hA== Received: from g2t2352.austin.hpe.com (g2t2352.austin.hpe.com [15.233.44.25]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3df1qw9947-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 08 Jan 2022 08:25:57 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2352.austin.hpe.com (Postfix) with ESMTP id 337BA62 for ; Sat, 8 Jan 2022 08:25:57 +0000 (UTC) Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id 7AA6B39; Sat, 8 Jan 2022 08:25:56 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com Subject: [PATCH 53/79] RiscVPlatformPkg/Sec: Add more comments to Secmain.c Date: Sat, 8 Jan 2022 15:24:36 +0800 Message-Id: <20220108072444.17879-12-abner.chang@hpe.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220108072444.17879-1-abner.chang@hpe.com> References: <20220108072444.17879-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: XToOfwbf_ijCs82X9hbvKmRWbVX_l4bD X-Proofpoint-GUID: XToOfwbf_ijCs82X9hbvKmRWbVX_l4bD X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-08_03,2022-01-07_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 mlxscore=0 phishscore=0 malwarescore=0 clxscore=1015 suspectscore=0 impostorscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201080064 Content-Transfer-Encoding: quoted-printable (This is migrated from edk2-platforms:Platform) Add more comments to SecMain.c Cc: Sunil V L Cc: Daniel Schaefer Signed-off-by: Abner Chang Reviewed-by: Daniel Schaefer Reviewed-by: Sunil V L --- 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