u-boot/arch/powerpc/cpu/mpc85xx
Pali Rohár c0f4756216 powerpc: mpc85xx: Set TEXT_BASE addresses to real base values
Currently CONFIG_SPL_TEXT_BASE and CONFIG_SYS_TEXT_BASE addresses are
manually increased by 0x1000 due to .bootpg section. This section has size
of 0x1000 bytes and is manually put by linker script before .text section
(and therefore before base address) when CONFIG_SYS_MPC85XX_NO_RESETVEC is
set. Due to this fact lot of other config options are manually increased by
0x1000 value to make correct layout. Note that entry point is not on
CONFIG_SPL_TEXT_BASE (image+0x1000) but it is really on address
CONFIG_SPL_TEXT_BASE-0x1000 (means at the start of the image).

Cleanup handling of .bootpg section when CONFIG_SYS_MPC85XX_NO_RESETVEC is
set. Put .bootpg code directly into .text section and move text base
address to the start of .bootpg code. And finally remove +0x1000 value from
lot of config options. With this removal custom PHDRS is not used anymore,
so remove it too.

After this change entry point would be at CONFIG_SPL_TEXT_BASE and not at
address -0x1000 anymore.

Tested on P2020 board with SPL and proper U-Boot.

Signed-off-by: Pali Rohár <pali@kernel.org>
2022-06-28 09:40:02 -04:00
..
b4860_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
b4860_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bsc9132_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
c29x_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
cmd_errata.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
config.mk mpc85xx: Add support for -msingle-pic-base 2019-01-23 10:48:48 -08:00
cpu.c powerpc: mpc85xx: Fix compilation with CONFIG_WDT 2022-06-20 09:18:26 +08:00
cpu_init.c caam: Fix crash in case caam_jr_probe failed 2022-05-20 12:36:47 +02:00
cpu_init_early.c Migrate CUSTOM_SYS_INIT_SP_ADDR to Kconfig using system-constants.h 2022-06-06 12:09:19 -04:00
fdt.c powerpc: Remove unused MPC8540/60ADS code 2022-03-03 16:51:19 -05:00
fsl_corenet2_serdes.c WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
fsl_corenet2_serdes.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fsl_corenet_serdes.c WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
fsl_corenet_serdes.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
interrupts.c common: Drop asm/ptrace.h from common header 2020-05-18 21:19:23 -04:00
Kconfig Convert CONFIG_E300 et al to Kconfig 2022-04-01 10:28:47 -04:00
liodn.c fdt_support: Add fdt_for_each_node_by_compatible() helper macro 2022-01-20 11:35:29 +01:00
Makefile Convert CONFIG_SPL_INIT_MINIMAL et al to Kconfig 2022-06-06 12:09:00 -04:00
mp.c powerpc: Move CONFIG_BPTR_VIRT_ADDR out of CONFIG namespace 2022-03-18 12:48:17 -04:00
mp.h powerpc/mpc85xx: Rewrite spin table to comply with ePAPR v1.1 2012-10-22 14:31:32 -05:00
mpc8536_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mpc8544_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mpc8548_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
p1010_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
p1021_serdes.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
p1023_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
p2020_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
p2041_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p2041_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p3041_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p3041_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p4080_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p4080_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p5040_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p5040_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
portals.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
qe_io.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
release.S powerpc: mpc85xx: Improve Work-around for Erratum A005125 2018-05-09 09:17:51 -05:00
resetvec.S powerpc: mpc85xx: Rename _start_e500 symbol to _start 2022-04-26 17:18:39 +05:30
speed.c powerpc: Remove unused MPC8540/60ADS code 2022-03-03 16:51:19 -05:00
spl_minimal.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
start.S powerpc: mpc85xx: Set TEXT_BASE addresses to real base values 2022-06-28 09:40:02 -04:00
t1024_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t1024_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t1040_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t1040_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t2080_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t2080_serdes.c ppc: Remove T2081QDS board and ARCH_T2081 support 2021-04-10 08:04:42 -04:00
t4240_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t4240_serdes.c ppc: Remove T4160RDB board 2021-07-07 19:52:24 -04:00
tlb.c Convert CONFIG_SPL_INIT_MINIMAL et al to Kconfig 2022-06-06 12:09:00 -04:00
traps.c common: remove bedbug debugger support 2022-01-18 08:31:02 -05:00
u-boot-spl.lds powerpc: mpc85xx: Set TEXT_BASE addresses to real base values 2022-06-28 09:40:02 -04:00
u-boot.lds powerpc: mpc85xx: Set TEXT_BASE addresses to real base values 2022-06-28 09:40:02 -04:00