From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by mx.groups.io with SMTP id smtpd.web12.25.1605053895560778952 for ; Tue, 10 Nov 2020 16:18:15 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=qAEQMNhU; spf=pass (domain: nuviainc.com, ip: 209.85.215.196, mailfrom: rebecca@nuviainc.com) Received: by mail-pg1-f196.google.com with SMTP id f27so198166pgl.1 for ; Tue, 10 Nov 2020 16:18:15 -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=tcvMAs51fq9PU7Gq5wzZqkoiL5CDUp9MZPheL+UAGro=; b=qAEQMNhUKcjwhKpaX2rYSWMu8owj9VIYPfYRRezJ5oTsFOMoE8Y9OoqDZhhNQTH/a6 Y1yAC0rqesodwLYCzAxLlbyNQz5OD/ZFQZZs5a3z2Ko5U/SploQ2AsQuqN9qeewSTAvI ZsNpCBrhOpOW2/kCVytbOf4RP8pkT4/oLkU3MOAcxyp1BH+/prmlzBfBEMoiPFE9jyYQ jyi0HeSBIfqquxEYmSwGLs2IudsvHmZNbrR/TCw2txHJ84qxqXhcOJDQCz3qj2a32Izu gBiESJdLLJKC7HkuMuc2Hd6klZk+OVDUzT2PlKts2C3lBasrRRifMsyldbZzIrD/EXbJ hfYA== 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=tcvMAs51fq9PU7Gq5wzZqkoiL5CDUp9MZPheL+UAGro=; b=KxPyqU3Um5toOOdQ3ihMlgJymw4CbX34Qmxg34QmQTIcIsTh/0eYwQGAqzBrbTYRhy F/fyMyBHUbS4uTaFiDLkEnLhO1WWTKMzh5qtkuGsvo0u6UIsqedgu7z65u6ddY0Swrdl 8qeUS3eDQQCZXSaAgX8P86zOV1nD1Oy4bGVZJUfNo4cs5BHcMsULRJZ1dVOFPOZ1ORO1 w4rUMTN1g8iKMns9dEamEwAEkjFiT3EnmVTWEZrVI2RZxb5G9LDkuNBMiroj/EZOkiQ0 AWeyAodAcaLS3swemsV+WuxCKbvtBDdJt9D3yYqCXi+7zFl8F93N0qDQRdH1ltQTvDSB DqPQ== X-Gm-Message-State: AOAM531EtXXP3NcyP4KlqtSUP+begNc0XzUF7BgjSOYrYg+4g304aC+O es0+JkWiuRrbBTEkCk7ee9QbzJLyXIqBMkbWYrCR6AVmadzbYr/50D/5XKOrUHLL4iVyANy+fZs EoZD+aTMxBns+kSqoIlFWfejCPWsUTWgnBNlNK1Uj4sm3Kg0g/y2F77dMUYTcw2L/ym26+QTP X-Google-Smtp-Source: ABdhPJwk+hhmBBRB2WWkKGkmr0dSoDA2BVVQNoY6p5Nk5AP1sajorEc7sFRok18Zlt1aTCpkOcvfqg== X-Received: by 2002:a17:90a:3d03:: with SMTP id h3mr824703pjc.11.1605053894798; Tue, 10 Nov 2020 16:18:14 -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 f7sm270705pfe.30.2020.11.10.16.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 16:18:14 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v3 1/3] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Date: Tue, 10 Nov 2020 17:17:46 -0700 Message-Id: <20201111001748.20217-2-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201111001748.20217-1-rebecca@nuviainc.com> References: <20201111001748.20217-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..90f32c2249cd 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 ARM_SMC_ID_ARCH_VERSION 0x80000000 +#define ARM_SMC_ID_ARCH_FEATURES 0x80000001 +#define ARM_SMC_ID_ARCH_SOC_ID 0x80000002 +#define ARM_SMC_ID_ARCH_WORKAROUND_1 0x80008000 +#define ARM_SMC_ID_ARCH_WORKAROUND_2 0x80007FFF + +#define ARM_SMC_ARCH_RET_SUCCESS 0 +#define ARM_SMC_ARCH_RET_NOT_SUPPORTED -1 +#define ARM_SMC_ARCH_RET_NOT_REQUIRED -2 +#define ARM_SMC_ARCH_RET_INVALID_PARAMETER -3 + /* * Power State Coordination Interface (PSCI) calls cover a subset of the * Standard Service Call range. -- 2.26.2