[coreboot] Patch set updated for coreboot: 5bf1fa5 snow: cleanup ramstage and call hardwaremain()
David Hendricks (dhendrix@chromium.org)
gerrit at coreboot.org
Thu Feb 7 05:02:12 CET 2013
David Hendricks (dhendrix at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2302
-gerrit
commit 5bf1fa59748b29bd837401683a8bcd89c18b91f9
Author: David Hendricks <dhendrix at chromium.org>
Date: Wed Feb 6 16:29:42 2013 -0800
snow: cleanup ramstage and call hardwaremain()
** do not submit **
It dies when trying to init CBMEM, but at least it gets somewhere...
Change-Id: I30200432535244de971a7cea9f7902f5e9b46403
Signed-off-by: David Hendricks <dhendrix at chromium.org>
---
src/mainboard/google/snow/ramstage.c | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/src/mainboard/google/snow/ramstage.c b/src/mainboard/google/snow/ramstage.c
index 50050d3..d280dbe 100644
--- a/src/mainboard/google/snow/ramstage.c
+++ b/src/mainboard/google/snow/ramstage.c
@@ -19,14 +19,21 @@
#include <console/console.h>
+#if CONFIG_WRITE_HIGH_TABLES
+#include <cbmem.h>
+#endif
+
+void hardwaremain(int boot_complete);
void main(void)
{
-// volatile unsigned long *pshold = (unsigned long *)0x1004330c;
-// *pshold &= ~0x100; /* shut down */
-
- /* FIXME: console_init() seems to cause things to die... Maybe
- we need to reset our stack pointer? */
-// console_init();
+ console_init();
printk(BIOS_INFO, "hello from ramstage\n");
- while (1);
+
+#if CONFIG_WRITE_HIGH_TABLES
+ /* Leave some space for ACPI tables */
+ high_tables_base = CONFIG_RAMBASE;
+ high_tables_size = CONFIG_RAMBASE + 0x100000;
+#endif
+
+ hardwaremain(0);
}
More information about the coreboot
mailing list