From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by mx.groups.io with SMTP id smtpd.web12.3074.1606782857855828384 for ; Mon, 30 Nov 2020 16:34:17 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=DGYc5jlX; spf=pass (domain: nuviainc.com, ip: 209.85.214.193, mailfrom: rebecca@nuviainc.com) Received: by mail-pl1-f193.google.com with SMTP id k5so101067plt.6 for ; Mon, 30 Nov 2020 16:34:17 -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=FqUJGno0Tu3atLb4OM/k/Vvnn5IQ8ja2fwnP4eZW+Gw=; b=DGYc5jlX5YpFF1/4i8Vn/cQfuFBLEba4ATxswCAJN6kudw8Pt0Q7X/imbESsRwZztA jI9HcjtIVdR4uCnigak21eEDjKNiVIulap0KOrfchYoDV4BUfTQQszfho4W3aYV42bXf MLi+tHoHIehNOyfM3S+HLPJDN1aUlYTKd0cP8trGGrZWnKhnjnyec2aA46uDcDGySUMW qi5NsSpINYHjmuGWW1aVLuwU7SHEhxzHe5V7A1EvTGv3QTZbJ7Eov5g8vK9iDGlxOZvn Kam5K1Tanm4uqDZNeq4xjPStcwZS3cSWD6mptJPYPbvyj1mcYZhXMIw0RvSwf9bxjNxS x2pA== 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=FqUJGno0Tu3atLb4OM/k/Vvnn5IQ8ja2fwnP4eZW+Gw=; b=icymDgbs2hCYdqjGgQM3SK6YEr4ElzknzIt26c9B726CYBSkNi9cR/95PEmfJj6X4P DJOGokiSGPBOs35mWSOdULZ26b8gtiVsqVaQqUi4qRX7ShZ5QFbCxdgFLDYUWBkpb/5p em2c7POsDYzUWccBbFkQOIMni1FJmFwcA6QSGqp5ef336eHkJqHoGe2JRcu5I7uE/Faw pMOvIibWCCBUAc0Br0ugQfmJnO7r4oYQ5+5u6aK/xb+MFmE8C9EZlk1sxLczFf24Mgoo sd2Koro1Jl6smF8MLRZ+07sjNccTlgKtLt8bD/7RSIfrz4k1ljaKZ33Kj9oy1UEn0Aq4 qQeA== X-Gm-Message-State: AOAM5311nt+wNpYsdCj3oVJxlfs+d+JpdEoqcTKX/PPiC4w+Zl1eRPFy ku4Wjo+ZO0aCyPyVhgjwkkvwv3HehdFs/039lnCZYxpK6GyBgre2t59uuAf/u7l2xqRxOybYT6w kkISFUnQU/RXjL2Fg9a1aoYHsvYoY8hSO0Sn940lTUhQjAwtsTKrRRHoCMFyBpe58hyl0Z98Y X-Google-Smtp-Source: ABdhPJzgkUa1PVcuTjej6WPHgcjYZFK60y/hMVM3i0V6rseP2F80yIUrr036nc7jH7qzADBXTK6fMg== X-Received: by 2002:a17:90a:aa87:: with SMTP id l7mr416493pjq.167.1606782856538; Mon, 30 Nov 2020 16:34:16 -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 22sm57899pjb.40.2020.11.30.16.34.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 16:34:15 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Michael D Kinney , Liming Gao , Zhiguang Liu , Leif Lindholm , Ard Biesheuvel , Sami Mujawar Subject: [PATCH v4 01/11] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Date: Mon, 30 Nov 2020 17:33:48 -0700 Message-Id: <20201201003358.8780-2-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201201003358.8780-1-rebecca@nuviainc.com> References: <20201201003358.8780-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 --- ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h index 3509eb680f18..6ee7fbb7a812 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 +// 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