Refactor copy_and_run so that it uses a single code base instead of
authorPatrick Georgi <patrick.georgi@coresystems.de>
Thu, 30 Apr 2009 07:07:22 +0000 (07:07 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Thu, 30 Apr 2009 07:07:22 +0000 (07:07 +0000)
commit12aba82e55c02470ed80b7682efa8b4e8f702bc1
treef48156a0a625fdd9d7358e6a172a5cdb343ca9a7
parenta43ee75d9a7dc859292b186f22ac0550f149a0a3
Refactor copy_and_run so that it uses a single code base instead of
3 (with one of them way too much assembler code).

On the way, I had to make some changes to the way the code is built,
which is an effort I want to expand over time.
Right now, large portions of the in-ROM part of coreboot is compiled as
a single file, with lots of .c files including other .c files.
That has its justification for pre-raminit code, but it also affects
lots of post-raminit code (memcpy doesn't really make sense before
raminit, or at least CAR)

The coreboot_apc code (AMD boards) gained some .c includes because I
don't know that part of the code enough to really rework it and only
have limited possibilities to test it. The includes should give an
identical situation for this part of the code.

This change was posted as set of 6 patches to the list, but they
were mostly split for review purposes, hence commit them all at once.
They can still be backed up using the patch files, if necessary.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4233 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
64 files changed:
src/arch/i386/init/crt0.S.lb
src/arch/i386/init/ldscript.lb
src/arch/i386/init/ldscript_failover.lb
src/arch/i386/init/ldscript_fallback.lb
src/arch/i386/lib/Config.lb
src/arch/i386/lib/console.c
src/boot/Config.lb
src/boot/hardwaremain.c
src/console/Config.lb
src/cpu/amd/car/copy_and_run.c
src/cpu/intel/model_6ex/cache_as_ram_disable.c
src/cpu/intel/model_6fx/cache_as_ram_disable.c
src/cpu/x86/car/copy_and_run.c
src/lib/Config.lb
src/mainboard/amd/dbm690t/cache_as_ram_auto.c
src/mainboard/amd/pistachio/cache_as_ram_auto.c
src/mainboard/amd/serengeti_cheetah/apc_auto.c
src/mainboard/amd/serengeti_cheetah/cache_as_ram_auto.c
src/mainboard/amd/serengeti_cheetah_fam10/Options.lb
src/mainboard/amd/serengeti_cheetah_fam10/cache_as_ram_auto.c
src/mainboard/arima/hdama/cache_as_ram_auto.c
src/mainboard/asus/a8n_e/cache_as_ram_auto.c
src/mainboard/asus/a8v-e_se/cache_as_ram_auto.c
src/mainboard/asus/m2v-mx_se/cache_as_ram_auto.c
src/mainboard/broadcom/blast/cache_as_ram_auto.c
src/mainboard/gigabyte/ga_2761gxdk/cache_as_ram_auto.c
src/mainboard/gigabyte/m57sli/cache_as_ram_auto.c
src/mainboard/hp/dl145_g3/cache_as_ram_auto.c
src/mainboard/ibm/e325/cache_as_ram_auto.c
src/mainboard/ibm/e326/cache_as_ram_auto.c
src/mainboard/iwill/dk8_htx/cache_as_ram_auto.c
src/mainboard/iwill/dk8s2/cache_as_ram_auto.c
src/mainboard/iwill/dk8x/cache_as_ram_auto.c
src/mainboard/kontron/986lcd-m/auto.c
src/mainboard/msi/ms7135/cache_as_ram_auto.c
src/mainboard/msi/ms7260/cache_as_ram_auto.c
src/mainboard/msi/ms9185/cache_as_ram_auto.c
src/mainboard/msi/ms9282/cache_as_ram_auto.c
src/mainboard/newisys/khepri/cache_as_ram_auto.c
src/mainboard/nvidia/l1_2pvv/cache_as_ram_auto.c
src/mainboard/sunw/ultra40/cache_as_ram_auto.c
src/mainboard/supermicro/h8dme/apc_auto.c
src/mainboard/supermicro/h8dme/cache_as_ram_auto.c
src/mainboard/supermicro/h8dmr/apc_auto.c
src/mainboard/supermicro/h8dmr/cache_as_ram_auto.c
src/mainboard/technexion/tim8690/cache_as_ram_auto.c
src/mainboard/tyan/s2735/cache_as_ram_auto.c
src/mainboard/tyan/s2850/cache_as_ram_auto.c
src/mainboard/tyan/s2875/cache_as_ram_auto.c
src/mainboard/tyan/s2880/cache_as_ram_auto.c
src/mainboard/tyan/s2881/cache_as_ram_auto.c
src/mainboard/tyan/s2882/cache_as_ram_auto.c
src/mainboard/tyan/s2885/cache_as_ram_auto.c
src/mainboard/tyan/s2891/cache_as_ram_auto.c
src/mainboard/tyan/s2892/cache_as_ram_auto.c
src/mainboard/tyan/s2895/cache_as_ram_auto.c
src/mainboard/tyan/s2912/cache_as_ram_auto.c
src/mainboard/tyan/s2912_fam10/cache_as_ram_auto.c
src/mainboard/tyan/s4880/cache_as_ram_auto.c
src/mainboard/tyan/s4882/cache_as_ram_auto.c
src/mainboard/via/vt8454c/auto.c
src/northbridge/intel/i945/raminit.c
src/pc80/serial.c
src/stream/Config.lb