program loading: add prog_run() function
commitb3847e64242228166976f425cd42331db7857551
authorAaron Durbin <adurbin@chromium.org>
Fri, 20 Mar 2015 20:55:08 +0000 (20 15:55 -0500)
committerAaron Durbin <adurbin@google.com>
Fri, 3 Apr 2015 12:52:47 +0000 (3 14:52 +0200)
tree36b912ee4d045402534305723fd006a0ec88012f
parent3948e5392bbfd685e6e2f9abfb16c46a2eae18b9
program loading: add prog_run() function

The prog_run() function abstracts away what is required
for running a given program. Within it, there are 2
calls: 1. platform_prog_run() and 2. arch_prog_run().
The platform_prog_run() allows for a chipset to intercept
a program that will be run. This allows for CPU switching
as currently needed in t124 and t132.

Change-Id: I22a5dd5bfb1018e7e46475e47ac993a0941e2a8c
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/8846
Tested-by: build bot (Jenkins)
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
15 files changed:
src/arch/arm/Makefile.inc
src/arch/arm/boot.c
src/arch/arm64/Makefile.inc
src/arch/arm64/boot.c
src/arch/mips/boot.c
src/arch/riscv/Makefile.inc
src/arch/riscv/boot.c
src/arch/x86/boot/Makefile.inc
src/arch/x86/boot/boot.c
src/include/program_loading.h
src/lib/Makefile.inc
src/lib/loaders/load_and_run_payload.c
src/lib/loaders/load_and_run_ramstage.c
src/lib/loaders/load_and_run_romstage.c
src/lib/prog_ops.c [moved from src/lib/arch_ops.c with 85% similarity]