Skip to content

Make sure 85xx bss doesn't start at 0x0

Peter Tyser u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/285xx: Preprocess link scriptscpu/mpc85xx/config.mk cpu/mpc85xx/u-boot-nand.lds.S cpu/mpc85xx/u-boot.lds.S+1 -11 reply
1/285xx: Preprocess link scripts+0 -00 replies
2/285xx: Ensure BSS segment doesn't start at address 0x0cpu/mpc85xx/u-boot.lds.S+8 -01 reply
2/285xx: Ensure BSS segment doesn't start at address 0x0+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/2] Make sure 85xx bss doesn't start at 0x0

It looks like the 85xx platform is the only one which has boards with the bss at 0x0. It uses a slightly different linker script format which puts the bss after the reset vector, which is 0xfffffffc + 4 for a number of boards. Other platforms don't put their bss in a similar location, so they don't have this issue. I verified this by running MAKEALL and printing the bss address as well.

A few bytes of RAM are wasted for boards which used to have the bss at 0x0 FWIW.

These changes should be applied to the "reloc" branch.

Peter Tyser (2):
85xx: Preprocess link scripts
85xx: Ensure BSS segment doesn't start at address 0x0

 cpu/mpc85xx/config.mk                              |    2 +-
 cpu/mpc85xx/{u-boot-nand.lds => u-boot-nand.lds.S} |    0
 cpu/mpc85xx/{u-boot.lds => u-boot.lds.S}           |    8 ++++++++
 3 files changed, 9 insertions(+), 1 deletions(-)
 rename cpu/mpc85xx/{u-boot-nand.lds => u-boot-nand.lds.S} (100%)
 rename cpu/mpc85xx/{u-boot.lds => u-boot.lds.S} (94%)