From nobody Fri Apr 19 03:22:01 2024 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+69639+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+69639+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1609801126; cv=none; d=zohomail.com; s=zohoarc; b=P0UGZDtF83eVX94F4j1q/GcKQRIorYfdaPtoepWJkT3DMho/YoN+fzLz2TyM1wLwrxfqvjL7g729kbxt4qV1WluTwdDu+K2LSfpeE0GIU15OpQrjzC2gTfQz4tvZ2rYHdMj1di3glcebtb1sHNlLtGaXSov8s1uz6mz+Vf/n5SY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609801126; 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=oNUOXIcQz6A+bJ7OSvmV2dJ0vVPguvvNQTVJfamzmtE=; b=afgGuyxKa4f0clg8cfYYS2X1ZFpzMZ93hJZh2LVqrXNxcb85GEibNusGCSRS0Zotjmh0Ma4zy4RYuwYqQ5B93QdauPlCSKHtJ8OMkxTpyFsjskV0K/8cn9sbnTlIGtbBzzkjswivNn3bIZRwF1Qon+DPycMPvkmADn8dLHu7zhs= 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+69639+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1609801126513882.2257083239679; Mon, 4 Jan 2021 14:58:46 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id Gn8xYY1788612x7VFGRMC1w5; Mon, 04 Jan 2021 14:58:46 -0800 X-Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mx.groups.io with SMTP id smtpd.web09.67.1609801120611878136 for ; Mon, 04 Jan 2021 14:58:40 -0800 X-Received: by mail-pg1-f170.google.com with SMTP id i5so20058027pgo.1 for ; Mon, 04 Jan 2021 14:58:40 -0800 (PST) X-Gm-Message-State: Bjf0RiPy0qvbmGBikNygyXr8x1787277AA= X-Google-Smtp-Source: ABdhPJyk6iZKqNUUJeQYlkOeN6E8rdQAMxoNV4TsTcvfqqz6jZb/IK9Ka37RJL1KcEhdkSuIJfwvbg== X-Received: by 2002:a65:5bc8:: with SMTP id o8mr60674078pgr.100.1609801119935; Mon, 04 Jan 2021 14:58:39 -0800 (PST) X-Received: from cube.nuviainc.com (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id x143sm64185289pgx.66.2021.01.04.14.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 14:58:39 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel , "nd @ arm . com . Sami Mujawar" , Liming Gao , Michael D Kinney , Zhiguang Liu , Sami Mujawar Subject: [edk2-devel] [PATCH v5 01/23] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Date: Mon, 4 Jan 2021 15:58:08 -0700 Message-Id: <20210104225830.12606-2-rebecca@nuviainc.com> In-Reply-To: <20210104225830.12606-1-rebecca@nuviainc.com> References: <20210104225830.12606-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=1609801126; bh=BWiRMjJ8NXX9JRgguiL9VroNcgwq0G+q5UnUGTwh/u4=; h=Cc:Date:From:Reply-To:Subject:To; b=DAbm4ru/Cgi2GE+N6Wsn6IF2vFDF4oBbEy/7s3IoDVJiBkJZfeJfq8dtUh/ueQMEzAU y+hYeKpgI57VFELMqOUqhoBOSWSZXoOpzv/xfNxWrK8PBB1n/vFXkA+iK0Hb5qbhpVb/9 L2X59VT03mv8QZ+ScavmBfd69Znt8EqBk4Q= 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 (#69639): https://edk2.groups.io/g/devel/message/69639 Mute This Topic: https://groups.io/mt/79438401/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-