aboutsummaryrefslogtreecommitdiff
path: root/include/efi_variable.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt2024-04-03 17:33:34 +0200
committerHeinrich Schuchardt2024-04-08 13:03:31 +0200
commit3b51c3a0b03411b07f0acd8bf2361ba54043fdcf (patch)
tree7eb708266860a8bbe43391e72bc2c03b29563b23 /include/efi_variable.h
parent19327c1f90e528cd89eb170250ebea6338b424f5 (diff)
efi_loader: EFI_VARIABLE_READ_ONLY should be 32bit
GetVariable() and SetVariable() only accept a 32bit value for attributes. It makes not sense to define EFI_VARIABLE_READ_ONLY as unsigned long. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/efi_variable.h')
-rw-r--r--include/efi_variable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/efi_variable.h b/include/efi_variable.h
index 805e6c5f1e0..42a2b7c52be 100644
--- a/include/efi_variable.h
+++ b/include/efi_variable.h
@@ -8,7 +8,7 @@
#include <linux/bitops.h>
-#define EFI_VARIABLE_READ_ONLY BIT(31)
+#define EFI_VARIABLE_READ_ONLY 0x80000000
enum efi_auth_var_type {
EFI_AUTH_VAR_NONE = 0,