summaryrefslogtreecommitdiff
path: root/src/mainboard/emulation
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-03-28 09:31:47 -0500
committerAaron Durbin <adurbin@google.com>2015-03-28 17:43:47 +0100
commit8880df10fae2b399038ce7876d78b8aa9b0836fa (patch)
treec3f85e0afe0d6cdeeb04827046b0e2347f91fcd2 /src/mainboard/emulation
parent910a00dc30c28a667e7064961107ff4483d739e1 (diff)
downloadcoreboot-8880df10fae2b399038ce7876d78b8aa9b0836fa.tar.xz
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)
Diffstat (limited to 'src/mainboard/emulation')
-rw-r--r--src/mainboard/emulation/imgvp-pistachio/romstage.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mainboard/emulation/imgvp-pistachio/romstage.c b/src/mainboard/emulation/imgvp-pistachio/romstage.c
index ac0ea5f903..3fcf23d461 100644
--- a/src/mainboard/emulation/imgvp-pistachio/romstage.c
+++ b/src/mainboard/emulation/imgvp-pistachio/romstage.c
@@ -19,20 +19,11 @@
* MA 02110-1301 USA
*/
-#include <arch/hlt.h>
-#include <arch/stages.h>
-#include <cbfs.h>
+#include <program_loading.h>
#include <console/console.h>
void main(void)
{
- void *entry;
-
console_init();
-
- entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, "fallback/ramstage");
- if (entry != (void *)-1)
- stage_exit(entry);
-
- hlt();
+ run_ramstage();
}