From nobody Tue Feb 10 06:58:55 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+68387+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+68387+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1607363681; cv=none; d=zohomail.com; s=zohoarc; b=FUCVNJwf7xaurBh/2ZLiG/H3/HZZ8pDzPsHD3AUnj0ejf5CNlyqbkgRJDifTwjwo9NsdGlA8kGaKpjF8fmENdHkLv7ye4uhLiJU1v4FWPZyqWtMCIc2HmbE9US1pJJBv2Jp6o1H33RkUahFcN8l+q/r/efZCMGpWBLYl/wZ4kN4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607363681; 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=FXugJ+qS8MSQG6k0dyXZEdRd0taCQfzbv9TlSrNYjm4=; b=g3UoAhR4Hzg/hFO0dFeItx9tlAMZSwivsmxNWuG8buZf4SMKkG0uxeqrqVqzny7F8tZcBKka+B2U2MukKcwsbXWFyl6/LWBuEe5Hoi6/Rw5QRHRSaAHZITsSL6/ZZPZXejtOoQyf4INJk/f9V8jDEvNrCtmZgFlzkGwf+ko0IDI= 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+68387+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1607363681800840.2648684491055; Mon, 7 Dec 2020 09:54:41 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id CCqtYY1788612x2TuARkKtHH; Mon, 07 Dec 2020 09:54:41 -0800 X-Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by mx.groups.io with SMTP id smtpd.web09.151.1607363680895662375 for ; Mon, 07 Dec 2020 09:54:40 -0800 X-Received: by mail-pg1-f193.google.com with SMTP id n7so9543082pgg.2 for ; Mon, 07 Dec 2020 09:54:40 -0800 (PST) X-Gm-Message-State: bAAKSuarC8FrHvyXL61BUqDEx1787277AA= X-Google-Smtp-Source: ABdhPJwqQXQBPHFgVmv7k0lpds4XnSt0za4LpAtn0G0aXlCkY9AC6Pohn1HAF3fPE0D9kJyi9adMFg== X-Received: by 2002:a63:f348:: with SMTP id t8mr19391376pgj.425.1607363680180; Mon, 07 Dec 2020 09:54:40 -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 nm6sm2369pjb.25.2020.12.07.09.54.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 09:54:39 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Michael D Kinney , Liming Gao , Zhiguang Liu , Leif Lindholm , Ard Biesheuvel Subject: [edk2-devel] [PATCH v4 01/10] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Date: Mon, 7 Dec 2020 10:54:18 -0700 Message-Id: <20201207175427.28712-2-rebecca@nuviainc.com> In-Reply-To: <20201207175427.28712-1-rebecca@nuviainc.com> References: <20201207175427.28712-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=1607363681; bh=DXorDHDu0s8J4MifijcWmH+hOSo2yhnqW62Yz+LxbV0=; h=Cc:Date:From:Reply-To:Subject:To; b=rbCprI7aeQhkThcDRU8pgaa/l875xQaP8QXzIeqGzyqk3T3HNpTsaifdY5J+XbOkmim Y1C9pyWQIUVrRyLjrTiRo/oujXWeXsmO9ccvvoufoH1g2IkpgpcjMIEyFTKXQvjKAtSnx YdfCRlpNUCjfme3qxxHkLP6I4y3hUs5B+G8= 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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h b/ArmPkg/Include/I= ndustryStandard/ArmStdSmc.h index 3509eb680f18..13f2245f37f5 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 @@ -52,6 +53,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 (#68387): https://edk2.groups.io/g/devel/message/68387 Mute This Topic: https://groups.io/mt/78784060/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-