[SeaBIOS] [PATCH 04/13] post: Export functions which will be used individually by CSM
David Woodhouse
dwmw2 at infradead.org
Mon Jan 28 17:23:37 CET 2013
From: David Woodhouse <David.Woodhouse at intel.com>
Not-yet-signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
src/post.c | 10 +++++-----
src/post.h | 11 +++++++++++
2 files changed, 16 insertions(+), 5 deletions(-)
create mode 100644 src/post.h
diff --git a/src/post.c b/src/post.c
index dbf4944..b53f1eb 100644
--- a/src/post.c
+++ b/src/post.c
@@ -158,7 +158,7 @@ bda_init(void)
StackPos = (void*)(&ExtraStack[BUILD_EXTRA_STACK_SIZE] - datalow_base);
}
-static void
+void VISIBLE32INIT
interface_init(void)
{
// Running at new code address - do code relocation fixups
@@ -183,7 +183,7 @@ interface_init(void)
}
// Initialize hardware devices
-static void
+void VISIBLE32INIT
device_hardware_setup(void)
{
usb_setup();
@@ -252,7 +252,7 @@ platform_hardware_setup(void)
biostable_setup();
}
-static void
+void VISIBLE32INIT
prepareboot(void)
{
// Run BCVs
@@ -302,7 +302,7 @@ maininit(void)
}
// Begin the boot process by invoking an int0x19 in 16bit mode.
-static void
+void
startBoot(void)
{
// Clear low-memory allocations (required by PMM spec).
@@ -330,7 +330,7 @@ updateRelocs(void *dest, u32 *rstart, u32 *rend, u32 delta)
}
// Relocate init code and then call maininit() at new address.
-static void
+void VISIBLE32INIT
reloc_preinit(void)
{
if (!CONFIG_RELOCATE_INIT)
diff --git a/src/post.h b/src/post.h
new file mode 100644
index 0000000..29304aa
--- /dev/null
+++ b/src/post.h
@@ -0,0 +1,11 @@
+// Functions used during POST
+//
+// Copyright © 2012 Intel Corporation
+//
+// This file may be distributed under the terms of the GNU LGPLv3 license.
+
+void interface_init(void);
+void device_hardware_setup(void);
+void prepareboot(void);
+void startBoot(void);
+void reloc_preinit(void);
--
1.8.0.2
More information about the SeaBIOS
mailing list