See patch.
We could also just #include post_code.h everywhere explicitly, but I
think that's a bit of an overkill as we use console.h everywhere already.
Note: There are build problems in v3 currently which are being
investigated (and this patch won't fix them).
Uwe.
--
http://www.hermann-uwe.de | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
Only post_code.h should have the prototype for post_code() from
post_code.c (thus drop it from console.h).
Instead, have console.h #include post_code.h and drop other
explicit #includes of post_code.h in the code; console.h is already
included in pretty much every file.
Signed-off-by: Uwe Hermann <[EMAIL PROTECTED]>
Index: southbridge/amd/cs5536/cs5536.c
===================================================================
--- southbridge/amd/cs5536/cs5536.c (Revision 512)
+++ southbridge/amd/cs5536/cs5536.c (Arbeitskopie)
@@ -20,7 +20,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
-#include <post_code.h>
#include <device/pci.h>
#include <msr.h>
#include <amd_geodelx.h>
Index: include/console.h
===================================================================
--- include/console.h (Revision 512)
+++ include/console.h (Arbeitskopie)
@@ -19,6 +19,7 @@
#include <types.h>
#include <shared.h> /* We share symbols from stage 0 */
+#include <post_code.h>
#define BIOS_EMERG 0 /* system is unusable */
#define BIOS_ALERT 1 /* action must be taken immediately */
@@ -35,7 +36,6 @@
void console_tx_flush(void);
unsigned char console_rx_byte(void);
int console_tst_byte(void);
-void post_code(u8 value);
void die(const char *msg);
struct console_driver {
Index: mainboard/adl/msm800sev/initram.c
===================================================================
--- mainboard/adl/msm800sev/initram.c (Revision 512)
+++ mainboard/adl/msm800sev/initram.c (Arbeitskopie)
@@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
-#include <post_code.h>
#include <device/device.h>
#include <device/pci.h>
#include <io.h>
Index: mainboard/adl/msm800sev/stage1.c
===================================================================
--- mainboard/adl/msm800sev/stage1.c (Revision 512)
+++ mainboard/adl/msm800sev/stage1.c (Arbeitskopie)
@@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
-#include <post_code.h>
#include <device/device.h>
#include <device/pci.h>
#include <io.h>
Index: mainboard/amd/norwich/initram.c
===================================================================
--- mainboard/amd/norwich/initram.c (Revision 512)
+++ mainboard/amd/norwich/initram.c (Arbeitskopie)
@@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
-#include <post_code.h>
#include <device/device.h>
#include <device/pci.h>
#include <string.h>
Index: mainboard/amd/norwich/stage1.c
===================================================================
--- mainboard/amd/norwich/stage1.c (Revision 512)
+++ mainboard/amd/norwich/stage1.c (Arbeitskopie)
@@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
-#include <post_code.h>
#include <device/device.h>
#include <device/pci.h>
#include <string.h>
Index: mainboard/artecgroup/dbe61/initram.c
===================================================================
--- mainboard/artecgroup/dbe61/initram.c (Revision 512)
+++ mainboard/artecgroup/dbe61/initram.c (Arbeitskopie)
@@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
-#include <post_code.h>
#include <device/device.h>
#include <device/pci.h>
#include <string.h>
Index: mainboard/artecgroup/dbe61/stage1.c
===================================================================
--- mainboard/artecgroup/dbe61/stage1.c (Revision 512)
+++ mainboard/artecgroup/dbe61/stage1.c (Arbeitskopie)
@@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
-#include <post_code.h>
#include <device/device.h>
#include <device/pci.h>
#include <string.h>
Index: northbridge/amd/geodelx/raminit.c
===================================================================
--- northbridge/amd/geodelx/raminit.c (Revision 512)
+++ northbridge/amd/geodelx/raminit.c (Arbeitskopie)
@@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
-#include <post_code.h>
#include <msr.h>
#include <spd.h>
#include <io.h>
Index: northbridge/amd/geodelx/geodelxinit.c
===================================================================
--- northbridge/amd/geodelx/geodelxinit.c (Revision 512)
+++ northbridge/amd/geodelx/geodelxinit.c (Arbeitskopie)
@@ -20,7 +20,6 @@
#include <types.h>
#include <console.h>
-#include <post_code.h>
#include <msr.h>
#include <cpu.h>
#include <amd_geodelx.h>
Index: arch/x86/stage1.c
===================================================================
--- arch/x86/stage1.c (Revision 512)
+++ arch/x86/stage1.c (Arbeitskopie)
@@ -26,7 +26,6 @@
#include <tables.h>
#include <lib.h>
#include <mc146818rtc.h>
-#include <post_code.h>
/* ah, well, what a mess! This is a hard code. FIX ME but how?
* By getting rid of ELF ...
--
linuxbios mailing list
[email protected]
http://www.linuxbios.org/mailman/listinfo/linuxbios