forked from slimbootloader/slimbootloader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: multiboot mod string in zero-terminated ASCII format slimbootloa…
…der#1913 Required by multiboot spec (*1), a mod string is a zero-terminated ASCII string. The patch introduces LoadMultibootModString to load mod string from a IMAGE_DATA (allocating a new buffer when requiring to append zero-terminated char). The patch does not reuse GetFromConfigFile because that function was designed to be compatible with legacy format (e.g., EOF signature) and truncates newline chars (which is not required by multiboot mod). For performance, the patch does not run "isascii" check. Minor change: - A typo error (InitMultibootMmap) - Declare FreeImageData in Library/IasImageLib.h - Dump mod string for debug build Reference: 1. https://www.gnu.org/software/grub/manual/multiboot/multiboot.html Verify: EHL CRB Signed-off-by: Stanley Chang <stanley.chang@intel.com>
- Loading branch information
1 parent
a34e54e
commit 393e27c
Showing
6 changed files
with
116 additions
and
21 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
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