From nobody Tue Feb 10 11:12:47 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+66876+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+66876+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1604347299; cv=none; d=zohomail.com; s=zohoarc; b=PUsdi6+yaMkKOaBnQj0QDS8eoi8s0+K1rMnJX3u7PEqbCPQR1RkyOeBHjmzTDuhQOxBTksSuE0gp/HVbwGZOkq9QJGzF8u8CE3CFB6evf9ZA2MuP3QV/NMO2ZYXDgZMSgZk8KvzvEyaFVZpgGturnqsRsr2GXquVTt/W25XFzkg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604347299; 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=CuurRlUDWT+HJR9ASk3tXmrmxWflZCV9/+K2+1/yHUQ=; b=bLDxdV6dIVYrDD4azsH0y+og2B1BgHlxnRUNUE/4kRh9Yg6cJWy7XD/C1yNaRaDIH+BxR97S4jXzkOj3ksf0lOILxSzAPxj/HuDVcZ5CvcaS4y4u6HRLCusn4c8D+hGPeKsEyvycWdGn0TU1bHt1iM2MkOTHeSjM35gAwphX8nU= 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+66876+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1604347299377252.10819629501395; Mon, 2 Nov 2020 12:01:39 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id fHlZYY1788612xEWl0jDP3IR; Mon, 02 Nov 2020 12:01:38 -0800 X-Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mx.groups.io with SMTP id smtpd.web11.295.1604347297581475339 for ; Mon, 02 Nov 2020 12:01:37 -0800 X-Received: by mail-pg1-f175.google.com with SMTP id r186so11741075pgr.0 for ; Mon, 02 Nov 2020 12:01:37 -0800 (PST) X-Gm-Message-State: 8QVzJ09tEZPpxZL7IV9yGge1x1787277AA= X-Google-Smtp-Source: ABdhPJz87dYTtEJchcw8MV+UW4NOLz3MHzKKr9Rpckex7b3JDQKlhoRYHlWoz4VlYnSlatsZIdmwxg== X-Received: by 2002:a17:90a:c48:: with SMTP id u8mr19106770pje.121.1604347296829; Mon, 02 Nov 2020 12:01:36 -0800 (PST) X-Received: from cube.nuviainc.com (muon.bluestop.org. [65.103.231.193]) by smtp.gmail.com with ESMTPSA id 6sm5093160pfb.22.2020.11.02.12.01.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 12:01:36 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel Subject: [edk2-devel] [PATCH 1/2] ArmPkg: Add ARM SMC Architecture calls to ArmStdSmc.h Date: Mon, 2 Nov 2020 13:01:14 -0700 Message-Id: <20201102200115.29003-2-rebecca@nuviainc.com> In-Reply-To: <20201102200115.29003-1-rebecca@nuviainc.com> References: <20201102200115.29003-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=1604347298; bh=BSPl0DhbhDOakHQvJWRT/xKLFksJZiekWB2AqBpSbig=; h=Cc:Date:From:Reply-To:Subject:To; b=AXy8MYvf9VLRmi9BvouPGmvxxUnHp5gxQm32xWQ+8f5p3h2pkSL2GczZG+pe8Dvpzus wVSu2u7fVmJbZUWQYRgACtjtFsu8J/TLMQgVuZ/Vb1D0XusqqZB5Erju3n2FMIaaemJK9 phVwV/ygfz9G5IAsZ014xyn1clRHqowDoUw= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" The ARM SMC Architecture calls 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 (#66876): https://edk2.groups.io/g/devel/message/66876 Mute This Topic: https://groups.io/mt/77990692/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-