Skip to content

Commit e325474

Browse files
authored
Merge pull request #35 from AdityaGarg8/main
Fix writing to NVRAM
2 parents a5ae25c + 7c01ca7 commit e325474

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

efi.patch

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
2+
index ae79c3300129..2303f9b06412 100644
3+
--- a/drivers/firmware/efi/efi.c
4+
+++ b/drivers/firmware/efi/efi.c
5+
@@ -722,6 +722,13 @@ void __init efi_systab_report_header(const efi_table_hdr_t *systab_hdr,
6+
systab_hdr->revision >> 16,
7+
systab_hdr->revision & 0xffff,
8+
vendor);
9+
+
10+
+ if (IS_ENABLED(CONFIG_X86_64) &&
11+
+ systab_hdr->revision > EFI_1_10_SYSTEM_TABLE_REVISION &&
12+
+ !strcmp(vendor, "Apple")) {
13+
+ pr_info("Apple EFI Mac detected, using EFI v1.10 runtime services only\n");
14+
+ efi.runtime_version = EFI_1_10_SYSTEM_TABLE_REVISION;
15+
+ }
16+
}
17+
18+
static __initdata char memory_type_name[][13] = {

0 commit comments

Comments
 (0)