]> xenbits.xensource.com Git - seabios.git/commitdiff
Disable handle_post() on CSM builds.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 18 Feb 2013 16:49:53 +0000 (11:49 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 18 Feb 2013 16:49:53 +0000 (11:49 -0500)
This reduces the size of the CSM binary by a few bytes.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/post.c

index cf0d9b435649f900c310a2db2fa5607d60720c7c..7f096deb77f384658d80852067f3e40fd6d6278a 100644 (file)
@@ -313,6 +313,9 @@ dopost(void)
 void VISIBLE32FLAT
 handle_post(void)
 {
+    if (!CONFIG_QEMU && !CONFIG_COREBOOT)
+        return;
+
     debug_serial_preinit();
     dprintf(1, "Start bios (version %s)\n", VERSION);