From nobody Tue Feb 10 05:46:32 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+67008+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+67008+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1604530274; cv=none; d=zohomail.com; s=zohoarc; b=b/wpk2W0gd29Mrm1M6SnLpvQUbSH24vJ1Taq/FZG09cJa+wy5EYmWrGbeDuwffKkUmt2uQ+N4N9LUQy69yyVKbYn0vsT8Vzus4qOPbn8wJ1qyPeRue9J5OovLdt+sUxbOg3Yde293XE7/dGm3jffVW07akxPB27OcOarPqAo50U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604530274; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=7GTio7SBgkVbLHdSyLPxOCWM/tdX7Z1AkozG8ZkT0Pc=; b=P/WSnuYnAxEMWxJNBrxwdWmiB+L0Bh9XduSqybU0twpoL0ml+LvglGfmKtiHZz+07tnphBVo11z9ixcws0lfkflUlkce81acXjJwfA6wswluzTyZWbaLeEw/D+bviT+oXtikSj2Sr8h5mivNDUq91cS49CibYlpFSSzs3zSTc3Y= 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+67008+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1604530274391752.356309644492; Wed, 4 Nov 2020 14:51:14 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 3U5fYY1788612x1tmsQ4ifdH; Wed, 04 Nov 2020 14:51:14 -0800 X-Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by mx.groups.io with SMTP id smtpd.web09.20709.1604530273229237501 for ; Wed, 04 Nov 2020 14:51:13 -0800 X-Received: by mail-pg1-f196.google.com with SMTP id r186so122998pgr.0 for ; Wed, 04 Nov 2020 14:51:13 -0800 (PST) X-Gm-Message-State: mpcUZwKNaRlGAJ2gpjw4VvzUx1787277AA= X-Google-Smtp-Source: ABdhPJywQqgzC3O3W/2BqnIHqqO3PlRHxal6zxyxxaFWdSqR03osoTqqLnFC1WK/Ukep1b93NrhvuQ== X-Received: by 2002:a17:90a:ce13:: with SMTP id f19mr164111pju.122.1604530272455; Wed, 04 Nov 2020 14:51:12 -0800 (PST) X-Received: from cube.nuviainc.com (muon.bluestop.org. [65.103.231.193]) by smtp.gmail.com with ESMTPSA id q6sm3180574pfu.23.2020.11.04.14.51.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 14:51:11 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel Subject: [edk2-devel] [PATCH v2 1/3] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Date: Wed, 4 Nov 2020 15:50:53 -0700 Message-Id: <20201104225055.18220-2-rebecca@nuviainc.com> In-Reply-To: <20201104225055.18220-1-rebecca@nuviainc.com> References: <20201104225055.18220-1-rebecca@nuviainc.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,rebecca@nuviainc.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1604530274; bh=DMa41O2Hr39ivtzpYO1bL7lwy6PEvYMkizOVI0Uil5M=; h=Cc:Date:From:Reply-To:Subject:To; b=tN6LE/8F4WiLq0PoYqg1zZjmihKDom4eAxf629H1dmuzj3WpS7MdHp/+mlsSesVMR5B EC4P3oAjNgKAx8In61QGoc7jm1bkB4RJvXpzzBPFG0EVHqb09iO5UnOS+Piz6Sb2e148v nWOaP8qDPMEV3CJXlCyWWbIu1keBgdNO7ko= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" The ARM SMC Architecture functions were missing from ArmStdSmc.h. Add them, and remove the version numbers for the SMCCC and PSCI, since they're unused and look like they may have been for code that's no longer present. Signed-off-by: Rebecca Cran --- ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 26 ++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h b/ArmPkg/Include/I= ndustryStandard/ArmStdSmc.h index 3509eb680f18..20642756bce8 100644 --- a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h +++ b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h @@ -1,5 +1,6 @@ /** @file * +* Copyright (c) 2020, NUVIA Inc. All rights reserved. * Copyright (c) 2012-2017, ARM Limited. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause-Patent @@ -27,13 +28,6 @@ #define ARM_SMC_STD_UUID2 0xfbc02dae #define ARM_SMC_STD_UUID3 0xe2f64156 =20 -/* - * ARM Standard Service Calls revision numbers - * The current revision is: 0.1 - */ -#define ARM_SMC_STD_REVISION_MAJOR 0x0 -#define ARM_SMC_STD_REVISION_MINOR 0x1 - /* * Management Mode (MM) calls cover a subset of the Standard Service Call = range. * The list below is not exhaustive. @@ -52,6 +46,18 @@ #define ARM_SMC_MM_RET_DENIED -3 #define ARM_SMC_MM_RET_NO_MEMORY -4 =20 +// ARM Architecture Calls +#define ARM_SMC_ID_ARCH_VERSION 0x80000000 +#define ARM_SMC_ID_ARCH_FEATURES 0x80000001 +#define ARM_SMC_ID_ARCH_SOC_ID 0x80000002 +#define ARM_SMC_ID_ARCH_WORKAROUND_1 0x80008000 +#define ARM_SMC_ID_ARCH_WORKAROUND_2 0x80007FFF + +#define ARM_SMC_ARCH_RET_SUCCESS 0 +#define ARM_SMC_ARCH_RET_NOT_SUPPORTED -1 +#define ARM_SMC_ARCH_RET_NOT_REQUIRED -2 +#define ARM_SMC_ARCH_RET_INVALID_PARAMETER -3 + /* * Power State Coordination Interface (PSCI) calls cover a subset of the * Standard Service Call range. @@ -70,12 +76,6 @@ #define ARM_SMC_ID_PSCI_SYSTEM_OFF 0x84000008 #define ARM_SMC_ID_PSCI_SYSTEM_RESET 0x84000009 =20 -/* The current PSCI version is: 0.2 */ -#define ARM_SMC_PSCI_VERSION_MAJOR 0 -#define ARM_SMC_PSCI_VERSION_MINOR 2 -#define ARM_SMC_PSCI_VERSION \ - ((ARM_SMC_PSCI_VERSION_MAJOR << 16) | ARM_SMC_PSCI_VERSION_MINOR) - /* PSCI return error codes */ #define ARM_SMC_PSCI_RET_SUCCESS 0 #define ARM_SMC_PSCI_RET_NOT_SUPPORTED -1 --=20 2.26.2 -=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 (#67008): https://edk2.groups.io/g/devel/message/67008 Mute This Topic: https://groups.io/mt/78040563/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-