From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mx.groups.io with SMTP id smtpd.web09.67.1609801120611878136 for ; Mon, 04 Jan 2021 14:58:40 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=vF4FynTg; spf=pass (domain: nuviainc.com, ip: 209.85.215.170, mailfrom: rebecca@nuviainc.com) Received: by mail-pg1-f170.google.com with SMTP id i5so20058027pgo.1 for ; Mon, 04 Jan 2021 14:58: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=EqF1Mz3PMXeVMg6qa4AmpFJ0FHeM3k2xJZ/geFIWC58=; b=vF4FynTgonbTXL5vjgz9O5DNQULpQWJUywBamwDarOFBAS1IrBzJXZYUeKiIMLBHYI 8mlojxYlOYLXy+xhejtWpKioAbAicdlqeqeEsVuAi2PjTPPfbMGgV8uBbNigHfLw7qVQ Liq3NjO4+ope0zKuswpVje+dVGnEYwm64vna3XdprRfQHweo40FUfUqOTUZtJXyQpeMV CkRxuGY3zjFULoqjrcuYFNUQZK2NP2YECn866TDcEwg7dHhmtdMaSt2nZVDB522zpNEc kVUdJujrAUF31+MusXwtwZw1wTyT3DkJRsCAyK10wcQYjQptknRmK0c7ayrT2v3h0Khp BrsA== 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=JlWRTM32Ghtb9lU0Mp/a3lSGoH86KiwiSkn4d8fD1rWADAEYX9gO69wwGnRUkbfPpw ERPgBdbq2ySqA2KK6o2W0yDKGMkB99zYt+NXxPzRL8DeQESSnzKGyrcpwQ5pDxPpAeUk xpiTwh6GL0unOnuFWKhBagnrCulvh5/T36cOkSOgmq9xS1umoaopnKn+eVjUmHiwCNyK T/SVEE3mNwblsbe2o5IwRQJQxqQDyxSntBt6RQo5m/vghudVAecVJut2MIjGYuKqOCvP 2mJyxA1wjwYDbLfU3RnlQkzoSAuL04ZEUvuKTMNH5PrE4ScrRLqO1QjFlU9fM/b6uL1b gx0g== X-Gm-Message-State: AOAM531/2A6Qdn0MIA/y1bo1/+b4qGeI6IaC+PBnyv1+Z+CJlKGFyyQO z60JRwBPKeY608XADzj9E5J4oFdaK8pIiLNXSlR1NM6uIjzHIgibozcT+TuxSLAOg/AhTHjTViA I/+he5uwQ6SFKpd5F6skmqfZHWBkIMdTPMyGjRmoI/UPAeV9sSz0cj6ieQmYizg/9rmWzMchw X-Google-Smtp-Source: ABdhPJyk6iZKqNUUJeQYlkOeN6E8rdQAMxoNV4TsTcvfqqz6jZb/IK9Ka37RJL1KcEhdkSuIJfwvbg== X-Received: by 2002:a65:5bc8:: with SMTP id o8mr60674078pgr.100.1609801119935; Mon, 04 Jan 2021 14:58:39 -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 x143sm64185289pgx.66.2021.01.04.14.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 14:58:39 -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 v5 01/23] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Date: Mon, 4 Jan 2021 15:58:08 -0700 Message-Id: <20210104225830.12606-2-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210104225830.12606-1-rebecca@nuviainc.com> References: <20210104225830.12606-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