-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dasharo/uefi_capsules.c: coalesce and store UEFI capsules
(After DEV_INIT:) 1. Capsules are parsed from CapsuleUpdateData* EFI variables and are validated for sanity 2. Capsule data is coalesced into a continuous piece of memory (On BS_WRITE_TABLES via dasharo_add_capsules_to_bootmem() hook:) 3. Buffer with coalesced capsules is marked as reserved (On BS_WRITE_TABLES via lb_uefi_capsules() hook:) 4. coreboot table entries are added for each of the discovered capsules Change-Id: I162d678ae5c504906084b59c1a8d8c26dadb9433 Signed-off-by: Sergii Dmytruk <[email protected]>
- Loading branch information
1 parent
c5e5924
commit 0ca0983
Showing
5 changed files
with
789 additions
and
0 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
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
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 |
---|---|---|
|
@@ -6,3 +6,5 @@ smm-y += options.c | |
all-y += options.c | ||
|
||
ramstage-y += smbios.c | ||
|
||
ramstage-y += uefi_capsules.c |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#ifndef DASHARO_UEFI_CAPSULES_H | ||
#define DASHARO_UEFI_CAPSULES_H | ||
|
||
void dasharo_parse_capsules(void); | ||
|
||
void dasharo_add_capsules_to_bootmem(void); | ||
|
||
#endif /* DASHARO_UEFI_CAPSULES_H */ |
Oops, something went wrong.