[coreboot] r1161 - coreboot-v3/lib
svn at coreboot.org
svn at coreboot.org
Fri Mar 20 17:05:56 CET 2009
Author: hailfinger
Date: 2009-03-20 17:05:56 +0100 (Fri, 20 Mar 2009)
New Revision: 1161
Modified:
coreboot-v3/lib/stage2.c
Log:
Emergency fixup for the missing is_coldboot().
Note that the weak is_coldboot() returns always 1.
The i945 is_coldboot() returns 1 for a warm boot?
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Modified: coreboot-v3/lib/stage2.c
===================================================================
--- coreboot-v3/lib/stage2.c 2009-03-19 23:29:20 UTC (rev 1160)
+++ coreboot-v3/lib/stage2.c 2009-03-20 16:05:56 UTC (rev 1161)
@@ -31,6 +31,17 @@
#include <lib.h>
/**
+ * Note that this function has exactly the opposite return code of
+ * northbridge/intel/i945/reset_test.c which returns 0 on cold boot.
+ *
+ * @returns always 1
+ */
+int __attribute__((weak)) is_coldboot(void)
+{
+ return 1;
+}
+
+/**
* CPU init code which runs BEFORE any stage2 dev_phase1 is run.
* This code might, for example, init ECC on all cores.
*
More information about the coreboot
mailing list