From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) by mx.groups.io with SMTP id smtpd.web08.4273.1610642197267482731 for ; Thu, 14 Jan 2021 08:36:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=oLTU+6Q/; spf=pass (domain: nuviainc.com, ip: 209.85.166.49, mailfrom: rebecca@nuviainc.com) Received: by mail-io1-f49.google.com with SMTP id y19so12417057iov.2 for ; Thu, 14 Jan 2021 08:36:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EqF1Mz3PMXeVMg6qa4AmpFJ0FHeM3k2xJZ/geFIWC58=; b=oLTU+6Q/wwj+9o5o/Ml3ijb3vjm5OzuC+4ehcXwjApRuVvZJO4gByODQCCH/+AGixV LCLDg02dmF2cKSt05ELNP/cWqupanwAR4RVKBD+Hm45knTn8xS+kyi3UNs40+TOQ9kOT fqF2DOP8y+gJEG4BVXa4IqI3S8wibFMds770CgJv7C6239qjrUviM5g8LFKYmN38baz/ pmPJ4bEQo9N/4vRVK5SXssUxvFDH96eBZAw9MdplG+GDfRrMXHSC286AlQGapBqsmoE7 5iNdkDxDUgZyKVHdclcQBSOE/7lp+E6bMAzcLDQ2W0DlgwU5f0AXyHdKrbdzArH2m3Uo j28A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EqF1Mz3PMXeVMg6qa4AmpFJ0FHeM3k2xJZ/geFIWC58=; b=OLbNY8MKdmiMFRQhDOkSFQyjNQcR/mpFdEs1MaDiqVVeOmPgVHaneg7g7aa68nsbyZ Cun5DFeSBZsXGq2UZuQohOrE8a0/WyUD3HcPbaHFKHy3iX4baNrw9jr9u3ypfk61YdYg J8vCLfEfs8y+M5Qizi+zvcXNY6DCjAN6gccGtiB1CfQHwfiwoAeUDkewSqeq1XYFUbB0 TRlQO0Jqur8wjJCZhtEWAz8kFJJYksxZkS+m4LPwzS/Pyn5tRBzFBTsjFe5gEsJlIc/u A2sCJDZfgW8LhOYR4zl1Lnl5Eip1E6Gx4hY6dDTZUtXiA5I7A0FxrbW+fdkxGreoFyBi uluA== X-Gm-Message-State: AOAM5307uxq0FyH2Qf8onHMGashbrto/OB0ftlE9ZjS22Xpu+vMhhzWS Q3WZT4OmrqoEivzvKeUO9trOXOtQkbYtGRxrHHrEhLUQ1QqFzLR0k8t3BvyaK4nMu0ddl0xcB7v 6WsdI2A9/OQ3JIi6wcs85tcn4K5QDuJqqnzPkIPJPNylZGOQhF0bw53zy0jnycSg7cpe4YgN2 X-Google-Smtp-Source: ABdhPJzle77Sr/qmH8dlfvpIxe9960Yza4H6qHlib/ud+gzSpcXkA8Xuvcu9RwQzbpJALVqyolB0FA== X-Received: by 2002:a6b:dd0a:: with SMTP id f10mr5800653ioc.6.1610642196344; Thu, 14 Jan 2021 08:36:36 -0800 (PST) Return-Path: 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 y5sm3711920ilj.35.2021.01.14.08.36.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 08:36:35 -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: [PATCH v6 02/22] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Date: Thu, 14 Jan 2021 09:36:08 -0700 Message-Id: <20210114163628.31952-3-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210114163628.31952-1-rebecca@nuviainc.com> References: <20210114163628.31952-1-rebecca@nuviainc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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/IndustryStandard/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=en) **/ #ifndef __ARM_STD_SMC_H__ @@ -52,6 +56,18 @@ #define ARM_SMC_MM_RET_DENIED -3 #define ARM_SMC_MM_RET_NO_MEMORY -4 +// 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. -- 2.26.2