Skip to content
Commit 7e8213c1 authored by Matt Fleming's avatar Matt Fleming Committed by Matt Fleming
Browse files

x86/efi: Correct EFI boot stub use of code32_start



code32_start should point at the start of the protected mode code, and
*not* at the beginning of the bzImage. This is much easier to do in
assembly so document that callers of make_boot_params() need to fill out
code32_start.

The fallout from this bug is that we would end up relocating the image
but copying the image at some offset, resulting in what appeared to be
memory corruption.

Reported-by: default avatarThomas Bächler <thomas@archlinux.org>
Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
parent 396f1a08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment