From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.74]) by mx.groups.io with SMTP id smtpd.web10.24271.1628784824211222222 for ; Thu, 12 Aug 2021 09:13:44 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nvidia.com header.s=selector2 header.b=QpyzgPB9; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: nvidia.com, ip: 40.107.92.74, mailfrom: jbrasen@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O6a1auwuQnQ0pyMUawS9YUHYhLQ6GbCCGHM0fp8lfVrnSM5ih1dvxrNLyg/eCcZR4lQ3TMhAr8KYvHcQPUO8GvpZUbxAHxtVfK2rFLEVtoDUE7zx2pm3n1RR1+MJFfM2Im+yj/bQZDkhFx4XNKdIV+pXJZ4IonT706MbolHdKg6j6rQo+3B0Vh1Il3xJvUj0Ra/qJG6eDDdbuQQKfT9hI3yjgb5g9oeC4ZhVh83xTbB5CTNpGGkDY0hWDng0g60863d78XlQobNZe+U4PWbbMmDzAZY4PlXkBQJ6E9VFgEc3UbcbK0Ipyco/GaEKVFntYdmNs6XGtnjztA8bDRl/Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nPCklkNMkDcCxGFSnsdrADOzQhj1FXcESzW1MftmITg=; b=Zixhshg6+WB7xIBxDPQiB97rOyCTlAIhZnt29FKZPhqKT3uw4fvI76vX1KViO96sGoR7mQ+Irb/kRU/gi83LHiorHdLg1RrlIRlN1R+ZHoI/lgNetL9rTSTc9H4o1KufFbTY6WMYi0+29GyZK4DzV5V8FONglUXrpu6CLat7o+AZodJ6xS+E/ZH24S+aqJIlIskvZB9fwV/GW309MKzAAcL+0h5/1EVPlVqnWs8cq/lbQkGui/46ReoqKP9SdF6k3zKInBl5hSdrFadZDN+dcqZ9I6Z4lRtfKhufCMHZZsK6qz46x5wovGjpSMao/zKsyUMy6mDCqC5nTX8vYN34yA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=temperror (sender ip is 216.228.112.35) smtp.rcpttodomain=arm.com smtp.mailfrom=nvidia.com; dmarc=temperror action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nPCklkNMkDcCxGFSnsdrADOzQhj1FXcESzW1MftmITg=; b=QpyzgPB9nVX477Ce4cbzmgeyrvu/ALChVRKV0laACSfNRVudbuFmLOc+fn0W2oPyPvPUDSy1YGUehjXyBzfaHZtV3bowaHgVp/101scU0mIaNgFyFbOHJNqKF9MHQp2s8TzMfqhidGagNylnfT+HbRSesLMm6t9oX6/JezIEOK8SiSeMBk5sJHrZUZyiYHTocPQ+7rNS8JK/Xel5oHKMh+/QybwKoY9N/pdD3yOW+HCQVI8OUdejd3aRhJFi+FM1A5EbaB1bKqmgDrQT0mXgIHRQ2g8POSI2WNls7InHxSFOgxDQyWAYCWKKAM3S0T076hnERSrlOVjzuBBPyFM4XA== Received: from BN7PR02CA0035.namprd02.prod.outlook.com (2603:10b6:408:20::48) by CY4PR12MB1224.namprd12.prod.outlook.com (2603:10b6:903:39::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.21; Thu, 12 Aug 2021 16:13:42 +0000 Received: from BN8NAM11FT063.eop-nam11.prod.protection.outlook.com (2603:10b6:408:20:cafe::5) by BN7PR02CA0035.outlook.office365.com (2603:10b6:408:20::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16 via Frontend Transport; Thu, 12 Aug 2021 16:13:42 +0000 X-MS-Exchange-Authentication-Results: spf=temperror (sender IP is 216.228.112.35) smtp.mailfrom=nvidia.com; arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=temperror action=none header.from=nvidia.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of nvidia.com: DNS Timeout) Received: from mail.nvidia.com (216.228.112.35) by BN8NAM11FT063.mail.protection.outlook.com (10.13.177.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4415.14 via Frontend Transport; Thu, 12 Aug 2021 16:13:41 +0000 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 12 Aug 2021 16:13:40 +0000 Received: from jbrasen-ux.nvidia.com (172.20.187.5) by mail.nvidia.com (172.20.187.15) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 12 Aug 2021 09:13:40 -0700 From: "Jeff Brasen" To: CC: , , , , , Jeff Brasen Subject: [edk2-test][PATCH 1/1] SctPkg: Fix runtime access to boot services functions Date: Thu, 12 Aug 2021 10:13:20 -0600 Message-ID: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-NVConfidentiality: public Return-Path: jbrasen@nvidia.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d7ed0553-2110-4883-8cf0-08d95dac26bb X-MS-TrafficTypeDiagnostic: CY4PR12MB1224: X-Microsoft-Antispam-PRVS: X-MS-Exchange-Transport-Forked: True X-MS-Oob-TLC-OOBClassifiers: OLM:2089; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A09CrXzXlu4Ph3fhtjrwQK1y/Ms9lFo1QRFfZQlZwibqq+83tfYjZqRCGfcdBXYqLAmMJswARi87MziVw0Jby/xD3ZuRrdkJQABONaD9rqvXVhb9eoaxyomP2iePl31XHEwaF/jWYwOFBySZpUPCGJ7Oh4r7fOhzRW0SW0j82U3aK5S6KkfuHlomblrazIL9Vs5LfP3m1e/xhiBzNVkC5GpKjy3u8p6PLYmgOM1oX1YXMoER67MOMIIjsz5/Lm8UViHP0BgRPbY3J8fnRubBmirzsxbjZhmj6q0LWHBJkIe+8tEMuAQNajZhQdVvnNb0D0fq1c9LXSZpVPHa+USNFTHQdZzXxKIYzhfgtUw/rmaqggbpUkPPSTkeuGYSVBVGd1CKfexxbm8Bej9X+TIFC/kilxSPWlh9DvWqnohKRqHRYPJ5qYZuGJAUkRrjmxLUmsKHOOxZx73ZqcKLce92ZrR+xlCTsLN4ptAK8BbJV+51mqtCdqf0otNEXd0IjTQnPNi6T7UXVodrcrZlj61sBbU0eG3KCpCgviPaklikWqMrfmBvoXih2MCILepxBhQU+n808u3UPk7C896yRh9j0aZzFpfDfjbfKiBxKnpaLy8WPmz4+Jeg0K/t5A+TaOlHnlTwCtLWLtvobsp2LqQH5rcdNFQpC3C7W3ruAnBo8hj/KD2DyyHLYSYWqnafBr5U0B8a1JUcOpNWiZnAX3kn2Q== X-Forefront-Antispam-Report: CIP:216.228.112.35;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:schybrid02.nvidia.com;CAT:NONE;SFS:(4636009)(46966006)(36840700001)(82310400003)(2906002)(83380400001)(5660300002)(107886003)(7696005)(8676002)(70586007)(8936002)(6666004)(70206006)(336012)(86362001)(6916009)(47076005)(186003)(7636003)(26005)(356005)(36906005)(426003)(19627235002)(36756003)(36860700001)(508600001)(316002)(2616005)(30864003)(4326008)(63350400001)(63370400001)(54906003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2021 16:13:41.2830 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d7ed0553-2110-4883-8cf0-08d95dac26bb X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.112.35];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT063.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1224 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain SctAPrint uses boot services functions but is called after ExitBootServices. Replace with call to Printf which is safe for use in runtime. Signed-off-by: Jeff Brasen --- .../SctPkg/SCRT/SCRTDriver/Aarch64/Dump.c | 52 +++++++++---------- uefi-sct/SctPkg/SCRT/SCRTDriver/Arm/Dump.c | 52 +++++++++---------- .../SctPkg/SCRT/SCRTDriver/Riscv64/Dump.c | 52 +++++++++---------- 3 files changed, 78 insertions(+), 78 deletions(-) diff --git a/uefi-sct/SctPkg/SCRT/SCRTDriver/Aarch64/Dump.c b/uefi-sct/SctP= kg/SCRT/SCRTDriver/Aarch64/Dump.c index cc8d9869..5688849c 100644 --- a/uefi-sct/SctPkg/SCRT/SCRTDriver/Aarch64/Dump.c +++ b/uefi-sct/SctPkg/SCRT/SCRTDriver/Aarch64/Dump.c @@ -26,43 +26,43 @@ Module Name: VOID DumpRuntimeTable() { - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DDump Runti= me Table=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("Header Signature =3D 0x%x\n", VRT->Hdr.Signature); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DDump Runtime = Table=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("Header Signature =3D 0x%x\n", VRT->Hdr.Signature); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetTime Se= rvice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetTime @ 0x%x\n", VRT->GetTime); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetTime Servi= ce=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetTime @ 0x%x\n", VRT->GetTime); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetTime Se= rvice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("SetTime @ 0x%x\n", VRT->SetTime); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetTime Servi= ce=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("SetTime @ 0x%x\n", VRT->SetTime); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetWakeupT= ime Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetWakeupTime @ 0x%x\n", VRT->GetWakeupTime); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetWakeupTime= Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetWakeupTime @ 0x%x\n", VRT->GetWakeupTime); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetWakeupT= ime Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("SetWakeupTime @ 0x%x\n", VRT->SetWakeupTime); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetWakeupTime= Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("SetWakeupTime @ 0x%x\n", VRT->SetWakeupTime); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetVariabl= e Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetVariable @ 0x%x\n", VRT->GetVariable); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetVariable S= ervice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetVariable @ 0x%x\n", VRT->GetVariable); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetNextVar= iableName Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetNextVariableName @ 0x%x\n", VRT->GetNextVariableName); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetNextVariab= leName Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetNextVariableName @ 0x%x\n", VRT->GetNextVariableName); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetVariabl= e Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("SetVariable @ 0x%x\n", VRT->SetVariable); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetVariable S= ervice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("SetVariable @ 0x%x\n", VRT->SetVariable); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetNextHig= hMonotonicCount Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetNextHighMonotonicCount @ 0x%x\n", VRT->GetNextHighMonoton= icCount); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetNextHighMo= notonicCount Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetNextHighMonotonicCount @ 0x%x\n", VRT->GetNextHighMonotonicC= ount); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DResetSyste= m Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("ResetSystem @ 0x%x\n", VRT->ResetSystem); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DResetSystem S= ervice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("ResetSystem @ 0x%x\n", VRT->ResetSystem); #if 0 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DUpdateCaps= ule Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("UpdateCapsule @ 0x%x\n", VRT->UpdateCapsule); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DUpdateCapsule= Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("UpdateCapsule @ 0x%x\n", VRT->UpdateCapsule); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DQueryCapsu= leCapabilities Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("QueryCapsuleCapabilities @ 0x%x\n", VRT->QueryCapsuleCapabil= ities); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DQueryCapsuleC= apabilities Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("QueryCapsuleCapabilities @ 0x%x\n", VRT->QueryCapsuleCapabiliti= es); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DQueryVaria= bleInfo Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("QueryVariableInfo @ 0x%x\n", VRT->QueryVariableInfo); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DQueryVariable= Info Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("QueryVariableInfo @ 0x%x\n", VRT->QueryVariableInfo); #endif } diff --git a/uefi-sct/SctPkg/SCRT/SCRTDriver/Arm/Dump.c b/uefi-sct/SctPkg/S= CRT/SCRTDriver/Arm/Dump.c index 89e03019..47173d45 100644 --- a/uefi-sct/SctPkg/SCRT/SCRTDriver/Arm/Dump.c +++ b/uefi-sct/SctPkg/SCRT/SCRTDriver/Arm/Dump.c @@ -27,43 +27,43 @@ Module Name: VOID DumpRuntimeTable() { - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DDump Runti= me Table=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("Header Signature =3D 0x%x\n", VRT->Hdr.Signature); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DDump Runtime = Table=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("Header Signature =3D 0x%x\n", VRT->Hdr.Signature); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetTime Se= rvice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetTime @ 0x%x\n", VRT->GetTime); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetTime Servi= ce=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetTime @ 0x%x\n", VRT->GetTime); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetTime Se= rvice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("SetTime @ 0x%x\n", VRT->SetTime); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetTime Servi= ce=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("SetTime @ 0x%x\n", VRT->SetTime); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetWakeupT= ime Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetWakeupTime @ 0x%x\n", VRT->GetWakeupTime); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetWakeupTime= Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetWakeupTime @ 0x%x\n", VRT->GetWakeupTime); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetWakeupT= ime Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("SetWakeupTime @ 0x%x\n", VRT->SetWakeupTime); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetWakeupTime= Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("SetWakeupTime @ 0x%x\n", VRT->SetWakeupTime); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetVariabl= e Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetVariable @ 0x%x\n", VRT->GetVariable); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetVariable S= ervice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetVariable @ 0x%x\n", VRT->GetVariable); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetNextVar= iableName Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetNextVariableName @ 0x%x\n", VRT->GetNextVariableName); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetNextVariab= leName Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetNextVariableName @ 0x%x\n", VRT->GetNextVariableName); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetVariabl= e Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("SetVariable @ 0x%x\n", VRT->SetVariable); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetVariable S= ervice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("SetVariable @ 0x%x\n", VRT->SetVariable); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetNextHig= hMonotonicCount Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetNextHighMonotonicCount @ 0x%x\n", VRT->GetNextHighMonoton= icCount); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetNextHighMo= notonicCount Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetNextHighMonotonicCount @ 0x%x\n", VRT->GetNextHighMonotonicC= ount); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DResetSyste= m Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("ResetSystem @ 0x%x\n", VRT->ResetSystem); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DResetSystem S= ervice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("ResetSystem @ 0x%x\n", VRT->ResetSystem); #if 0 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DUpdateCaps= ule Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("UpdateCapsule @ 0x%x\n", VRT->UpdateCapsule); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DUpdateCapsule= Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("UpdateCapsule @ 0x%x\n", VRT->UpdateCapsule); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DQueryCapsu= leCapabilities Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("QueryCapsuleCapabilities @ 0x%x\n", VRT->QueryCapsuleCapabil= ities); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DQueryCapsuleC= apabilities Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("QueryCapsuleCapabilities @ 0x%x\n", VRT->QueryCapsuleCapabiliti= es); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DQueryVaria= bleInfo Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("QueryVariableInfo @ 0x%x\n", VRT->QueryVariableInfo); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DQueryVariable= Info Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("QueryVariableInfo @ 0x%x\n", VRT->QueryVariableInfo); #endif } diff --git a/uefi-sct/SctPkg/SCRT/SCRTDriver/Riscv64/Dump.c b/uefi-sct/SctP= kg/SCRT/SCRTDriver/Riscv64/Dump.c index cc8d9869..5688849c 100644 --- a/uefi-sct/SctPkg/SCRT/SCRTDriver/Riscv64/Dump.c +++ b/uefi-sct/SctPkg/SCRT/SCRTDriver/Riscv64/Dump.c @@ -26,43 +26,43 @@ Module Name: VOID DumpRuntimeTable() { - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DDump Runti= me Table=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("Header Signature =3D 0x%x\n", VRT->Hdr.Signature); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DDump Runtime = Table=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("Header Signature =3D 0x%x\n", VRT->Hdr.Signature); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetTime Se= rvice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetTime @ 0x%x\n", VRT->GetTime); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetTime Servi= ce=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetTime @ 0x%x\n", VRT->GetTime); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetTime Se= rvice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("SetTime @ 0x%x\n", VRT->SetTime); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetTime Servi= ce=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("SetTime @ 0x%x\n", VRT->SetTime); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetWakeupT= ime Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetWakeupTime @ 0x%x\n", VRT->GetWakeupTime); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetWakeupTime= Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetWakeupTime @ 0x%x\n", VRT->GetWakeupTime); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetWakeupT= ime Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("SetWakeupTime @ 0x%x\n", VRT->SetWakeupTime); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetWakeupTime= Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("SetWakeupTime @ 0x%x\n", VRT->SetWakeupTime); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetVariabl= e Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetVariable @ 0x%x\n", VRT->GetVariable); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetVariable S= ervice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetVariable @ 0x%x\n", VRT->GetVariable); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetNextVar= iableName Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetNextVariableName @ 0x%x\n", VRT->GetNextVariableName); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetNextVariab= leName Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetNextVariableName @ 0x%x\n", VRT->GetNextVariableName); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetVariabl= e Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("SetVariable @ 0x%x\n", VRT->SetVariable); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSetVariable S= ervice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("SetVariable @ 0x%x\n", VRT->SetVariable); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetNextHig= hMonotonicCount Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("GetNextHighMonotonicCount @ 0x%x\n", VRT->GetNextHighMonoton= icCount); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DGetNextHighMo= notonicCount Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("GetNextHighMonotonicCount @ 0x%x\n", VRT->GetNextHighMonotonicC= ount); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DResetSyste= m Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("ResetSystem @ 0x%x\n", VRT->ResetSystem); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DResetSystem S= ervice=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("ResetSystem @ 0x%x\n", VRT->ResetSystem); #if 0 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DUpdateCaps= ule Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("UpdateCapsule @ 0x%x\n", VRT->UpdateCapsule); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DUpdateCapsule= Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("UpdateCapsule @ 0x%x\n", VRT->UpdateCapsule); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DQueryCapsu= leCapabilities Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("QueryCapsuleCapabilities @ 0x%x\n", VRT->QueryCapsuleCapabil= ities); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DQueryCapsuleC= apabilities Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("QueryCapsuleCapabilities @ 0x%x\n", VRT->QueryCapsuleCapabiliti= es); =20 - SctAPrint ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DQueryVaria= bleInfo Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); - SctAPrint ("QueryVariableInfo @ 0x%x\n", VRT->QueryVariableInfo); + Printf ("\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DQueryVariable= Info Service=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); + Printf ("QueryVariableInfo @ 0x%x\n", VRT->QueryVariableInfo); #endif } --=20 2.25.1