[coreboot] [PATCH] Fix non-revF K8 ram init compilation
Carl-Daniel Hailfinger
c-d.hailfinger.devel.2006 at gmx.net
Fri Jun 5 23:54:38 CEST 2009
On 05.06.2009 23:06, Carl-Daniel Hailfinger wrote:
> Sorry. It seems I overlooked these during my abuild run. Basically, all
> non-revF K8 are broken because printk_raminit is not defined.
>
Fix non-revF K8 ram init compilation which was broken in r4341.
abuild tested on affected targets.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Index: LinuxBIOSv2-k8_raminit_debugmessages_fix/src/northbridge/amd/amdk8/raminit.c
===================================================================
--- LinuxBIOSv2-k8_raminit_debugmessages_fix/src/northbridge/amd/amdk8/raminit.c (Revision 4341)
+++ LinuxBIOSv2-k8_raminit_debugmessages_fix/src/northbridge/amd/amdk8/raminit.c (Arbeitskopie)
@@ -19,6 +19,14 @@
#define QRANK_DIMM_SUPPORT 0
#endif
+#define RAM_TIMING_DEBUG 0
+
+#if RAM_TIMING_DEBUG == 1
+#define printk_raminit printk_debug
+#else
+#define printk_raminit(fmt, arg...)
+#endif
+
#if defined (__GNUC__)
static void hard_reset(void);
#endif
@@ -2106,7 +2114,7 @@
return;
hw_spd_err:
/* Unrecoverable error reading SPD data */
- print_err("SPD error - reset\n");
+ printk_err("SPD error - reset\n");
hard_reset();
return;
}
--
http://www.hailfinger.org/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: linuxbios_k8_raminit_debugmessages_fix.diff
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090605/b2848a6a/attachment.ksh>
More information about the coreboot
mailing list