From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) by mx.groups.io with SMTP id smtpd.web11.26307.1612135519766814870 for ; Sun, 31 Jan 2021 15:25:19 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=lE1hHUgY; spf=pass (domain: nuviainc.com, ip: 209.85.160.181, mailfrom: rebecca@nuviainc.com) Received: by mail-qt1-f181.google.com with SMTP id e15so11018912qte.9 for ; Sun, 31 Jan 2021 15:25:19 -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=lE1hHUgYqaFHKS3QmwIXSaOq3I5RpZE6Q2sIKqu8VLCNr+IB0BFMdpkusiZN77PdQg /2PzlHrNQzosmCb3YIQhUvfraXBOFUNiryWEkUUm2N/nhBan/D02NI+upGmpHLBFaZ3o NZY2gifOUsT0znYr9BZKF3OtGfpcwGvCOSeIgAzV9sbuVdo5pl5zllNikBmXdCJWXfUT VwCQ6S1ZAN5t5zUeWAZxGCphKRy/BlXtCkZF1VsfYJCnXuF/Egr83PbGYRRJC9mk7Ql4 FPFbr/4sLoUn8AO7eDRODemQ8nieUIcQ4R8C+leX4k4aBscw/mpOqf8uSNOXUBT738Eb XJvw== 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=H95IFbE/ANQx1Ga2idHayXP4/LLSCuzie0KXaqEwp6pj69rJK7OZKytdF+hoXXWJK+ 11m2rVZByFdW4aFIVF5KNvHlPT/W24+d3Cgub6EF2UOgLqcUAsgrjuzd3PFRYpGenegA ZW6k/Cg4cU3bev7GfF8fIG0/UB3Ub+/r4mpiwnb8XCW3lb/de70j3OR09fL+j9lMRK4I qrjjPtjg1F0F2UchgFJoarVsYt9HNRbHTezMvt39ZPAS9jvLeQ289A+3Cpc263rGaxx4 rDVNoTKj+0yss0lIKmFbZRHXWne62hXQxMifHEAwi1Mg3iTdHY56ImY8/fT2MoYHRJWz 9MLg== X-Gm-Message-State: AOAM533lmhirU8KsUtYAM3HIdMBuP8itYrCRIMXv/TpnRjEnuoXKYpbT g3p1cfR5v3fEP/uSXbUTOZYN1a03H35UgChlCKgNAu4zS8LHAyjYajjwrGFjYCe7LtfXIrcbieY 8uJ9T9R1sDUs7m8U57Z8NHOA9v4oSN/iqnhIAED/IQvTjYQeY3N74EQybS9oFN3w2SIQrBw== X-Google-Smtp-Source: ABdhPJy40MbwMka1m66FM4XMAoW35oNj7zT/k57x3W/9qoQR0VilVuG50K7f4nR3yRR/9TFb2eIElg== X-Received: by 2002:ac8:5e12:: with SMTP id h18mr13092094qtx.335.1612135518621; Sun, 31 Jan 2021 15:25:18 -0800 (PST) Return-Path: 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 12sm11809361qkg.39.2021.01.31.15.25.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Jan 2021 15:25:18 -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: [PATCH v7 01/21] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Date: Sun, 31 Jan 2021 16:24:51 -0700 Message-Id: <20210131232511.18340-2-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210131232511.18340-1-rebecca@nuviainc.com> References: <20210131232511.18340-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