From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=a4tIH0+X; spf=pass (domain: nuviainc.com, ip: 209.85.215.193, mailfrom: rebecca@nuviainc.com) Received: by mail-pg1-f193.google.com with SMTP id n7so9543082pgg.2 for ; Mon, 07 Dec 2020 09:54:40 -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=nj1bsjYzO3twbBo/D4VUK72OHhTYowvT5Oi8e1J+s0g=; b=a4tIH0+X5BWyG6CP8utBlB/lw0ibLRdrCgZthg5LSZEdzSBWwIkqHGGowlh7aPsZ1N V0f6UD2c1Y2PlSIPt0unnF1zhFlgfQZYRA+SqkJ8TDY8MCJPoAy2fBlIJttG58xH1bBC jvUHYFDD1AtHZYgMM+BO/pMgWO0B1yIa5iAHenB7NkP8XFWRysZqTeZ2vH6KTXFoMM2Q EjD1ZF3ZgE2992A8Y/IySToIA/lenmJPLs9xCDMdzZgvCswXP2aP5qf67Ra98Q4T7cp7 IIOUQzHoy+VlPS0rIpqcJqGNWObYGcARtiKPCZADE06smJbNtpiWj4Nc2ckjjNwuPII2 DtgA== 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=nj1bsjYzO3twbBo/D4VUK72OHhTYowvT5Oi8e1J+s0g=; b=gK+lDtTcwIz1PvezQyRjbavjo/MQhU4EGI5iv0KUqxOMuP/dP2rbfvW2xjbBSWN1kj uZD9lu9sZOQRSKqMscjuPUqGmEjqnzDmm1DgogJn8T2zkkWO5k+CCBcy3tUKHRPGeIFR slnm/Bt3WS6NNyLNblX9yDqXoMU3xK+lnIO6pKwWcx4H39/kJFnW2QjL7U3/Vb49Swnz ODfb/v/AMrT26BvcKHm0yBmqicbG+FiyqP8Qa5ska64yWgWQs8EZup/8Nvcm9WDQRy7Y +zfuCYAt1IXBQpze+yR0ClxMxQD6fWqS0OLZbehlfFncvRrnV9XBi6VogNGrRV9vu7Fb GV9g== X-Gm-Message-State: AOAM532t53hjziVylbSVxkahlN6puz6a0xORJhbYYVgxiChDte/f5U0l sw1uHFZWhL7ASPsuf8LweER8O50ttJBYiUn3X5b1Mztwu/8IoBENxPZZebbcS1AILkPjyEbGH1u NkOgS3CgS1qeK769TWUyaXuCFv2hVDQeAYBO5inxo+SI3fNMo6yx2PgSVlhR7FnolA84oYIkB 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) 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 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: [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> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201207175427.28712-1-rebecca@nuviainc.com> References: <20201207175427.28712-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..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 +// 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