pistachio: don't open code ramstage loading

Use the run_ramstage() function to load and run ramstage.

Change-Id: I783801bf506fa2f9608eefe1cd20257292c80af5
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/9148
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
Aaron Durbin 2015-03-28 09:31:47 -05:00 committed by Aaron Durbin
parent 910a00dc30
commit 8880df10fa
2 changed files with 4 additions and 23 deletions

View File

@ -19,20 +19,11 @@
* MA 02110-1301 USA * MA 02110-1301 USA
*/ */
#include <arch/hlt.h> #include <program_loading.h>
#include <arch/stages.h>
#include <cbfs.h>
#include <console/console.h> #include <console/console.h>
void main(void) void main(void)
{ {
void *entry;
console_init(); console_init();
run_ramstage();
entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, "fallback/ramstage");
if (entry != (void *)-1)
stage_exit(entry);
hlt();
} }

View File

@ -19,21 +19,11 @@
* MA 02110-1301 USA * MA 02110-1301 USA
*/ */
#include <arch/hlt.h> #include <program_loading.h>
#include <arch/stages.h>
#include <cbfs.h>
#include <console/console.h> #include <console/console.h>
void main(void) void main(void)
{ {
void *entry;
console_init(); console_init();
run_ramstage();
entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA,
CONFIG_CBFS_PREFIX "/ramstage");
if (entry != (void *)-1)
stage_exit(entry);
hlt();
} }