[SeaBIOS] [SeaBIOS PATCH 1/2] Fix regression of commit 87b533bf

Amos Kong akong at redhat.com
Mon Sep 19 08:53:38 CEST 2011

After adding more device entries in ACPI DSDT tables,
the filesize of bios.bin changed from 128K to 256K.
But bios could not initialize successfully.

This is a regression since seabios commit 87b533bf. Prior to
that commit, seabios did not mark the early 32bit initialization
code as init code. However, a side effect of marking that code
(handle_post) as init code is that it is more likely the linker
could place the code at an address less than 0xe0000.
The patch (just a hack) would cover up the issue.

Signed-off-by: Amos Kong <akong at redhat.com>
 0 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/src/post.c b/src/post.c
index e195e89..bc2e548 100644
--- a/src/post.c
+++ b/src/post.c
@@ -336,7 +336,7 @@ reloc_init(void)
 // Start of Power On Self Test (POST) - the BIOS initilization phase.
 // This function does the setup needed for code relocation, and then
 // invokes the relocation and main setup code.
@@ -356,6 +356,14 @@ handle_post(void)
     // Allow writes to modify bios area (0xf0000)
+    void handle_post2(void);
+    handle_post2();
     HaveRunPost = 1;
     // Detect ram and setup internal malloc.

More information about the SeaBIOS mailing list