aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-i440fx/romstage.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-08-18 08:02:23 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-08-26 21:12:29 +0000
commitf0a3d444580a8dd80c6f8260be2fbd1448118faf (patch)
tree28a3d6912ef4da41732a066fa6a3bdb58e018c91 /src/mainboard/emulation/qemu-i440fx/romstage.c
parent101ef0b528461a3fb662db150b16607430a2bd94 (diff)
emulation/qemu-x86: Use common romstage code
This provides stack guards with checking and common entry into postcar. Change-Id: If0729721f0165187946107eb98e8bc754f28e517 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34973 Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/emulation/qemu-i440fx/romstage.c')
-rw-r--r--src/mainboard/emulation/qemu-i440fx/romstage.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/romstage.c b/src/mainboard/emulation/qemu-i440fx/romstage.c
index 32eab3de3a..8e5691fc71 100644
--- a/src/mainboard/emulation/qemu-i440fx/romstage.c
+++ b/src/mainboard/emulation/qemu-i440fx/romstage.c
@@ -14,31 +14,10 @@
* GNU General Public License for more details.
*/
-#include <arch/cpu.h>
#include <arch/romstage.h>
-#include <stdint.h>
#include <cbmem.h>
-#include <console/console.h>
-#include <timestamp.h>
-#include <program_loading.h>
-asmlinkage void car_stage_entry(void)
+void mainboard_romstage_entry(void)
{
- struct postcar_frame pcf;
-
- console_init();
-
cbmem_recovery(0);
-
- timestamp_add_now(TS_START_ROMSTAGE);
-
- if (postcar_frame_init(&pcf, 0))
- die("Unable to initialize postcar frame.\n");
-
- /**
- * Run postcar to tear down CAR and load relocatable ramstage.
- * There's no CAR on qemu, but for educational purposes and
- * testing the postcar stage is used on qemu, too.
- */
- run_postcar_phase(&pcf);
}