-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shim: move the bulk of set_second_stage() to its own file
This moves set_second_stage() and some of the helper functions it uses out of shim.c, so that it's easier to write test cases for. Signed-off-by: Peter Jones <pjones@redhat.com>
- Loading branch information
Showing
5 changed files
with
470 additions
and
422 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: BSD-2-Clause-Patent | ||
/* | ||
* load-options.h - all the stuff we need to parse the load options | ||
*/ | ||
|
||
#ifndef SHIM_ARGV_H_ | ||
#define SHIM_ARGV_H_ | ||
|
||
EFI_STATUS generate_path_from_image_path(EFI_LOADED_IMAGE *li, | ||
CHAR16 *ImagePath, | ||
CHAR16 **PathName); | ||
|
||
EFI_STATUS parse_load_options(EFI_LOADED_IMAGE *li); | ||
|
||
extern CHAR16 *second_stage; | ||
extern void *load_options; | ||
extern UINT32 load_options_size; | ||
|
||
#endif /* !SHIM_ARGV_H_ */ | ||
// vim:fenc=utf-8:tw=75:noet |
Oops, something went wrong.