From: Heinrich Schuchardt <xypron.glpk@gmx.de>
To: u-boot@lists.denx.de
Subject: [PATCH] efi_loader: Correct value for ARM_SMC_MM_RET_NO_MEMORY
Date: Fri, 17 Jul 2020 00:46:05 +0200 [thread overview]
Message-ID: <2cd52149-e9bd-59b2-f9fe-bfe3aacbc7db@gmx.de> (raw)
In-Reply-To: <20200716202754.164026-1-ilias.apalodimas@linaro.org>
On 7/16/20 10:27 PM, Ilias Apalodimas wrote:
> Instead of adding the definition for the specific MM SVC used in
> StandAloneMM we added the one used in the standard SMC calls.
> So change the value from -4 to -5 to match the correct one defined in
> EDK2
Please, rename all your MM return code constants to avoid further confusion:
/* MM SVC return error codes */
#define ARM_SVC_SPM_RET_SUCCESS 0
#define ARM_SVC_SPM_RET_NOT_SUPPORTED -1
#define ARM_SVC_SPM_RET_INVALID_PARAMS -2
#define ARM_SVC_SPM_RET_DENIED -3
#define ARM_SVC_SPM_RET_NO_MEMORY -5
Best regards
Heinrich
>
> Fixes 23a397d2e2fb: ("efi_loader: Add headers for EDK2 StandAloneMM communication")
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
> ---
> include/mm_communication.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/mm_communication.h b/include/mm_communication.h
> index 193c4d157874..5aa60160ac63 100644
> --- a/include/mm_communication.h
> +++ b/include/mm_communication.h
> @@ -52,14 +52,14 @@ struct efi_mm_communicate_header {
> #define MM_COMMUNICATE_HEADER_SIZE \
> (sizeof(struct efi_mm_communicate_header))
>
> -/* Defined in EDK2 ArmPkg/Include/IndustryStandard/ArmStdSmc.h */
> +/* Defined in EDK2 ArmPkg/Include/IndustryStandard/ArmMmSvc.h */
>
> /* MM return error codes */
> #define ARM_SMC_MM_RET_SUCCESS 0
> #define ARM_SMC_MM_RET_NOT_SUPPORTED -1
> #define ARM_SMC_MM_RET_INVALID_PARAMS -2
> #define ARM_SMC_MM_RET_DENIED -3
> -#define ARM_SMC_MM_RET_NO_MEMORY -4
> +#define ARM_SMC_MM_RET_NO_MEMORY -5
>
> /* Defined in EDK2 MdeModulePkg/Include/Guid/SmmVariableCommon.h */
>
>
prev parent reply other threads:[~2020-07-16 22:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-16 20:27 [PATCH] efi_loader: Correct value for ARM_SMC_MM_RET_NO_MEMORY Ilias Apalodimas
2020-07-16 22:46 ` Heinrich Schuchardt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2cd52149-e9bd-59b2-f9fe-bfe3aacbc7db@gmx.de \
--to=xypron.glpk@gmx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.