From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mx.groups.io with SMTP id smtpd.web11.29128.1612745585400695547 for ; Sun, 07 Feb 2021 16:53:05 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=o5cM1yO+; spf=pass (domain: nuviainc.com, ip: 209.85.216.52, mailfrom: rebecca@nuviainc.com) Received: by mail-pj1-f52.google.com with SMTP id z9so7812941pjl.5 for ; Sun, 07 Feb 2021 16:53:05 -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=o5cM1yO+b5aDCBK42AUeRn4KQ0GgdUpNCc8TnW8rfY9/aOcct+xQGaE1XAUBTdG2F1 ru7WwTfg3AVbbwLKd7cD0t6t4CK4JY5vnP19Nq+8E8tCbl6gWkEu0fXzD/0k6RBW9SLJ w6lz+ONDo4UX2G4QLyJHn/vSzhY93fp0hn13Zvci3EDiNh/YZUyleYtJGUw6+YvqRBfD 0RbCGW2v8bFvIv9cmOuj2C1hUr8hSai9GmYX6ApvsNX2oGMPsvDQroo6ELX3MHfbCor5 nQY1gfq+QfDPQBqi8kuv9ixMJ6klvBlHGBK4UvH26MAVJurU+LeQ+6P7lOYZe+1tXWUN Tx/w== 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=NqqTvHzIcycXvIJ+9ZuvCpEZ1tPHpjVh/QMQQKVaQZD8RjCZ8WvKn5+uM+Klstumw2 tD5ln1gwE95RDs3BwjK+XUPWdNjv8lsUjj4Zlt0KrLWHwwZx804a4gTCY2VLCSDYGchy sSrecBOmTtsPySlZDhCcHDmwKVE8IOLl1WPXuyOjFL+FbB41b3DkS0HUn4Dj7fAa8fNE iQxY3PyKPdkKTi8/AFvgW/iQ/7kKdFuSkD5ykMghsg7JJKSDv1ndx5CBnMEaPHVOhO8X P5rhVRrmz2oz5M2rbPUH6/pUcbOnugc3JcU+Mjr39pbBJ8Msr2U48CSU0bJ/MrtGz4tF CGsA== X-Gm-Message-State: AOAM530swgffFeFFvTEQdYHjX+SfZbR/jEI4ffRqJJT/ZvJv0ZITpqOp jGvT8UEyL0TxNbNy4QLvCgLq8gHYs/g80Qf+YLekzIuCGwWrYM6P5ZXSnck58jUbmrH9e9Fv9PB cuGNarXGJ7rVW/fhn3ayda/x+2xMzwsM6OXzQ7Yes9Md80jlfi0MMX9UEspXi5WYdLH2o8g== X-Google-Smtp-Source: ABdhPJzp/H+55GqlOcqsd0oMOBF4ZvtuhD3Z9zZInBvU1JMmYX87uh88YlSuGCKsXPHSvS3Jo/lj9g== X-Received: by 2002:a17:90a:7345:: with SMTP id j5mr14773139pjs.176.1612745584572; Sun, 07 Feb 2021 16:53:04 -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 c6sm11095883pjd.21.2021.02.07.16.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 16:53:03 -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 v8 01/21] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Date: Sun, 7 Feb 2021 17:52:34 -0700 Message-Id: <20210208005254.12176-2-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210208005254.12176-1-rebecca@nuviainc.com> References: <20210208005254.12176-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