[SeaBIOS] [PATCH v2 18/19] Turn handle_post() into a no-op for CSM build
David Woodhouse
dwmw2 at infradead.org
Tue Feb 5 17:47:57 CET 2013
From: David Woodhouse <David.Woodhouse at 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 at 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);
--
1.8.1
More information about the SeaBIOS
mailing list