Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | From 12e9b977e4c7515ce90fecc62630be394fd7da62 Mon Sep 17 00:00:00 2001 |
| 2 | From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> |
| 3 | Date: Mon, 20 Dec 2021 19:54:39 +0000 |
| 4 | Subject: [PATCH] Change UID of variable index in SMM |
| 5 | |
| 6 | This patch fixes the os_indications setVariable() failure. The variable |
| 7 | index UID in SMM gateway which was 1 is changed in this patch. TFM has a |
| 8 | special usage for variable with UID 1, which makes it write once only. |
| 9 | This is not required for SMM variable index. |
| 10 | |
| 11 | Upstream-Status: Pending [Not submitted to upstream yet] |
| 12 | Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> |
| 13 | |
| 14 | |
| 15 | --- |
| 16 | components/service/smm_variable/backend/uefi_variable_store.c | 2 +- |
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 18 | |
| 19 | diff --git a/components/service/smm_variable/backend/uefi_variable_store.c b/components/service/smm_variable/backend/uefi_variable_store.c |
| 20 | index 6a90f46a..1bb869ae 100644 |
| 21 | --- a/components/service/smm_variable/backend/uefi_variable_store.c |
| 22 | +++ b/components/service/smm_variable/backend/uefi_variable_store.c |
| 23 | @@ -67,7 +67,7 @@ static efi_status_t check_name_terminator( |
| 24 | size_t name_size); |
| 25 | |
| 26 | /* Private UID for storing the variable index */ |
| 27 | -#define VARIABLE_INDEX_STORAGE_UID (1) |
| 28 | +#define VARIABLE_INDEX_STORAGE_UID (0x787) |
| 29 | |
| 30 | /* Default maximum variable size - |
| 31 | * may be overridden using uefi_variable_store_set_storage_limits() |