From nobody Tue Feb 10 03:56:01 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+71403+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+71403+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1612745586; cv=none; d=zohomail.com; s=zohoarc; b=GVW0j3aws+h1lojlWS2pQLzOGwKv+Y3SH67TY+3r7RT4TbxZZKSzWfGEtOJTmvoU2isCWrXvUeaErDsmELeMdzMGL2TfCAq4pJdpO1vQkUOE99YRU82x0fkqalk6x0RXltIfYdWG9HgHqCsQyhfFmu0hGsK6GnxElDQ46sc+miQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612745586; 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=Wy0FoOYm2k+GrQXTxqA6TCwmKG5kE/Mjmeef1kO2f2M=; b=SL9DHWpv0CnFmXUM9mIGeHsaydt5FqahOIMBSAn+KEE1LwuSmR/zDvCy9/ejQvCTbUgxyxnNFpORQDQwgTMDE90jLPOE26n0AdA/dwQsPfxskxz3GIp/Vn7gxJXe1SzEl64kSEjv/5VEIU02dfE8dr3AxaMJJRu04gp4iN2oDu4= 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+71403+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1612745586164165.6863568962251; Sun, 7 Feb 2021 16:53:06 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id CjUbYY1788612xDyDkSCSAbO; Sun, 07 Feb 2021 16:53:05 -0800 X-Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mx.groups.io with SMTP id smtpd.web11.29128.1612745585400695547 for ; Sun, 07 Feb 2021 16:53:05 -0800 X-Received: by mail-pj1-f52.google.com with SMTP id z9so7812941pjl.5 for ; Sun, 07 Feb 2021 16:53:05 -0800 (PST) X-Gm-Message-State: pltPjTLmzpqnbLASvvCb2WJ3x1787277AA= X-Google-Smtp-Source: ABdhPJzp/H+55GqlOcqsd0oMOBF4ZvtuhD3Z9zZInBvU1JMmYX87uh88YlSuGCKsXPHSvS3Jo/lj9g== X-Received: by 2002:a17:90a:7345:: with SMTP id j5mr14773139pjs.176.1612745584572; Sun, 07 Feb 2021 16:53:04 -0800 (PST) X-Received: from cube.int.bluestop.org (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id c6sm11095883pjd.21.2021.02.07.16.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 16:53:03 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , leif@nuviainc.com, Ard Biesheuvel , nd@arm.com, Sami Mujawar , Liming Gao , Michael D Kinney , Zhiguang Liu , Samer El-Haj-Mahmoud , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Sami Mujawar Subject: [edk2-devel] [PATCH v8 01/21] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Date: Sun, 7 Feb 2021 17:52:34 -0700 Message-Id: <20210208005254.12176-2-rebecca@nuviainc.com> In-Reply-To: <20210208005254.12176-1-rebecca@nuviainc.com> References: <20210208005254.12176-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=1612745585; bh=aXCDsXW78q51L9WP+AjJnnnyIlCyvUJOb0mPFOguQBs=; h=Cc:Date:From:Reply-To:Subject:To; b=JT/Wmsirw7Zpr6D20MaUKSDRHR+yibq2bG+iBUEqLKdFK+3a5OjZ72A2y2bvAvShNaQ Wur3tx09SOwdTjH1wFOt0Tm4jf/G9a8MogrYhipD3cl/0NHqJuh8TaljEkbgqC82y2Hrd PL5y7dd9l34Rhm7g8sFUMsPRNC+/EOQeGTo= 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, based on the SMC Calling Convention version 1.2 specification. Signed-off-by: Rebecca Cran Reviewed-by: Leif Lindholm Reviewed-by: Sami Mujawar --- ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h b/ArmPkg/Include/I= ndustryStandard/ArmStdSmc.h index 3509eb680f18..9e0a3a3960d5 100644 --- a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h +++ b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h @@ -1,9 +1,13 @@ /** @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 * +* @par Revision Reference: +* - SMC Calling Convention version 1.2 +* (https://developer.arm.com/documentation/den0028/c/?lang=3Den) **/ =20 #ifndef __ARM_STD_SMC_H__ @@ -52,6 +56,18 @@ #define ARM_SMC_MM_RET_DENIED -3 #define ARM_SMC_MM_RET_NO_MEMORY -4 =20 +// ARM Architecture Calls +#define SMCCC_VERSION 0x80000000 +#define SMCCC_ARCH_FEATURES 0x80000001 +#define SMCCC_ARCH_SOC_ID 0x80000002 +#define SMCCC_ARCH_WORKAROUND_1 0x80008000 +#define SMCCC_ARCH_WORKAROUND_2 0x80007FFF + +#define SMC_ARCH_CALL_SUCCESS 0 +#define SMC_ARCH_CALL_NOT_SUPPORTED -1 +#define SMC_ARCH_CALL_NOT_REQUIRED -2 +#define SMC_ARCH_CALL_INVALID_PARAMETER -3 + /* * Power State Coordination Interface (PSCI) calls cover a subset of the * Standard Service Call range. --=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 (#71403): https://edk2.groups.io/g/devel/message/71403 Mute This Topic: https://groups.io/mt/80467463/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-