Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headers redesign #3

Open
wants to merge 11 commits into
base: landing_zone
Choose a base branch
from
Open

Headers redesign #3

wants to merge 11 commits into from

Conversation

pietrushnic
Copy link

No description provided.

cardoe and others added 11 commits August 27, 2020 13:20
NOTE: I need some feedback here on how to implement this within the
style of iPXE. I've noticed that there's interfaces but those didn't
seem to line up with moving prep_segment into there nor did any of the
arch directories.

The prep_segment function is called by the elf_load() function and its
job is to ensure that the segment that is about to be loaded can be at
the address it wants to be without trampling existing memory and then
clears BSS. It uses the get_memmap() function which has been disabled on
EFI so this provides an alternative that uses EFI's allocation functions
to ensure that chunk of memory that the segment wants to be loaded at is
available and clears BSS.

Signed-off-by: Doug Goldstein <cardoe at cardoe.com>
This allows elf_load() to return back the load address where this ELF is
being loaded which is necessary for multiboot2 support.

Signed-off-by: Doug Goldstein <cardoe at cardoe.com>
Import the multiboot2 header from GRUB where the official spec for
multiboot2 lives.

Signed-off-by: Jonathan Creekmore <jonathan at thecreekmores.org>
Signed-off-by: Jonathan Creekmore <jonathan at thecreekmores.org>
Add the ability to load multiboot2 images on EFI only at this time. This
has been tested with Xen 4.9 using their multiboot2 support.

Signed-off-by: Jonathan Creekmore <jonathan at thecreekmores.org>
This adds support for probing for multiboot2 images when booting from
EFI.

Signed-off-by: Jonathan Creekmore <jonathan at thecreekmores.org>
Memory information is missing. ELF format is assumed.

Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
This assumes that only the first section of ELF file is to be measured.
LZ should clear the reserved file after reading kernel size.

Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
…call

mb2_bib structure is not yet filled, so it was used to pass that information

Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants