-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update 2010-efi-libstub-add-support-for-the-apple_set_os-protoco.patch
- Loading branch information
1 parent
70d7cfa
commit fedb891
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,25 +16,27 @@ the patch to the Linux kernel. | |
|
||
Signed-off-by: Aditya Garg <[email protected]> | ||
--- | ||
drivers/firmware/efi/libstub/efistub.h | 13 ++++++++++ | ||
drivers/firmware/efi/libstub/efistub.h | 15 +++++++++++ | ||
drivers/firmware/efi/libstub/x86-stub.c | 33 ++++++++++++++++++++++--- | ||
include/linux/efi.h | 1 + | ||
3 files changed, 44 insertions(+), 3 deletions(-) | ||
3 files changed, 46 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/drivers/firmware/efi/libstub/efistub.h b/drivers/firmware/efi/libstub/efistub.h | ||
index 27abb4ce0..140b8f986 100644 | ||
index 27abb4ce0..4257a8b7c 100644 | ||
--- a/drivers/firmware/efi/libstub/efistub.h | ||
+++ b/drivers/firmware/efi/libstub/efistub.h | ||
@@ -825,6 +825,19 @@ union apple_properties_protocol { | ||
@@ -825,6 +825,21 @@ union apple_properties_protocol { | ||
} mixed_mode; | ||
}; | ||
|
||
+typedef union apple_set_os_protocol apple_set_os_protocol_t; | ||
+ | ||
+union apple_set_os_protocol { | ||
+ unsigned long version; | ||
+ efi_status_t (__efiapi *set_os_version) (const char *); | ||
+ efi_status_t (__efiapi *set_os_vendor) (const char *); | ||
+ struct { | ||
+ unsigned long version; | ||
+ efi_status_t (__efiapi *set_os_version) (const char *); | ||
+ efi_status_t (__efiapi *set_os_vendor) (const char *); | ||
+ }; | ||
+ struct { | ||
+ u32 version; | ||
+ u32 set_os_version; | ||
|