snow: do something useful in ramstage()
This cleans up Snow's trivial ramstage, gives it a coreboot table address and calls hardwaremain(). Change-Id: I84c904bcfd57a5f9eb3969de8a496f01e43bc2f6 Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/2328 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
b73d904cff
commit
896edc28af
|
@ -19,12 +19,21 @@
|
||||||
|
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
|
||||||
|
#if CONFIG_WRITE_HIGH_TABLES
|
||||||
|
#include <cbmem.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void hardwaremain(int boot_complete);
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
// volatile unsigned long *pshold = (unsigned long *)0x1004330c;
|
|
||||||
// *pshold &= ~0x100; /* shut down */
|
|
||||||
|
|
||||||
console_init();
|
console_init();
|
||||||
printk(BIOS_INFO, "hello from ramstage\n");
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue