From: David Woodhouse David.Woodhouse@intel.com
This removes 25KiB of unused cruft from the image, crucially making the difference between a 128KiB image (which works with OVMF) and a 256KiB image (which doesn't).
Signed-off-by: David Woodhouse David.Woodhouse@intel.com --- src/post.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/post.c b/src/post.c index ec014c0..2f3633d 100644 --- a/src/post.c +++ b/src/post.c @@ -389,6 +389,9 @@ doreloc(void) void VISIBLE32FLAT handle_post(void) { + if (CONFIG_CSM) + return; + debug_serial_preinit(); dprintf(1, "Start bios (version %s)\n", VERSION);