09 Jan, 2013
1 commit
-
Move all the C runtime setup code from every start.S
in arch/arm into arch/arm/lib/crt0.S. This covers
the code sequence from setting up the initial stack
to calling into board_init_r().Also, rewrite the C runtime setup and make functions
board_init_*() and relocate_code() behave according to
normal C semantics (no jumping across the C stack any
more, etc).Some SPL targets had to be touched because they use
start.S explicitly or for some reason; the relevant
maintainers and custodians are cc:ed.Signed-off-by: Albert ARIBAUD
04 Oct, 2012
1 commit
-
When the u-boot address of destination equal to __start,
no relocation. relocation offset(r9) = 0.Signed-off-by: Zhong Hongbo
Tested-by: Stefano Babic
20 Jul, 2012
1 commit
-
In currently, when __bss_start is equal to __bss_end__,
The bss loop will clear all the things in memory space.But just only when __bss_end__ greater than __bss_start__,
we do the clear bss section operation.Signed-off-by: Zhong Hongbo
Acked-by: Andreas Bießmann
13 Sep, 2011
1 commit
-
Result of running the following command to address Wolfgang's
comment about camel case:for file in `find . | grep '\.[chS]$'`; do perl -i -pe
's/(green|yellow|red|blue)_LED_(on|off)/$1_led_$2/g' $file; doneDiscussion:
http://patchwork.ozlabs.org/patch/84988/Signed-off-by: Jason Kridner
Signed-off-by: Joel A Fernandes
Signed-off-by: Sandeep Paulraj
05 Aug, 2011
1 commit
-
There was a mix of UTF-8 and ISO-8859 files in the U-Boot source
tree, which could cause issues with the patchwork review system.
This commit converts all ISO-8859 files to UTF-8.Signed-off-by: Albert ARIBAUD
26 Jul, 2011
1 commit
-
replace all occurences of CONFIG_PRELOADER with CONFIG_SPL_BUILD
Signed-off-by: Aneesh V
28 Mar, 2011
2 commits
-
Monitor protection region in FLASH did not cover .rel.dyn
and .dynsym sections, because it uses __bss_start to compute
monitor_flash_len. Use _end instead.Add _end to linker scripts for end of u-boot image
Add _end_ofs to all the start.S.Signed-off-by: Po-Yu Chuang
-
Currently, _end is used for end of BSS section. We want _end to mean
end of u-boot image, so we rename _end to __bss_end__ first.Signed-off-by: Po-Yu Chuang
02 Feb, 2011
1 commit
-
Remove the useless code from start.S
Signed-off-by: Jason Liu
Tested-by: Andreas Bießmann
14 Dec, 2010
1 commit
-
Make code build with older tool chains.
Signed-off-by: Wolfgang Denk
09 Dec, 2010
4 commits
-
r8 is used for global_data and should therefore be left alone!
For C code the compiler flag --fixed-r8 does the job, but in assembler
we need to be aware of that fact.Signed-off-by: Andreas Bießmann
-
In case we are still at relocation target address before relocation we
do not need to load the registers needed for relocation. We should
instead skip the whole relocation part and jump over to clear_bss
immediately.Signed-off-by: Andreas Bießmann
-
This patch uses r1 as scratch register for copy_loop(). Therefore we do
not longer need r7 for the storage of relocate_code()'s 'addr_moni' (the
destination address of relocation).
Therefore r7 can be used later on for other purposes.Signed-off-by: Andreas Bießmann
-
suggested from Daniel Hobi
Tested on following boards:
arm1136: qong
armv7: omap3_beagle
arm926ejs: magnesium, tx25Signed-off-by: Heiko Schocher
cc: Daniel Hobi
cc: Albert ARIBAUD
27 Nov, 2010
1 commit
-
bulk addition of ELF relocation support to ARM cpus
arm946es, arm720t,arm920t, arm925t, arm_intcm, ixp,
lh7a40x, s3c44b0, and sa1100.Signed-off-by: Albert Aribaud
30 Oct, 2010
2 commits
-
For ARM systems, before ELF relocation was introduced,
CONFIG_SKIP_RELOCATE_UBOOT coul be used to prevent *COPYING* the
U-Boot image from whereever it was loaded to it's link address
(CONFIG_SYS_TEXT_BASE). The name was badly chosen, as no relocation
was performed at all, it was just a memcpy().With ELF relocation, this does not work like that any more, and
related boards need to be fixed anyway. So don't keep this relict any
longer.Signed-off-by: Wolfgang Denk
Tested-by: Heiko Schocher
Tested-by: Reinhard Meyer -
When this define was introduced, the idea was to provide a soft
migration path for ARM boards to get adapted to the new relocation
support. However, other recent changes led to a different
implementation (ELF relocation), where this no longer works. By now
CONFIG_SYS_ARM_WITHOUT_RELOC does not only not help any more, but it
actually hurts because it obfuscates the actual code by sprinkling it
with lots of dead and non-working debris.So let's make a clean cut and drop CONFIG_SYS_ARM_WITHOUT_RELOC.
Signed-off-by: Wolfgang Denk
Tested-by: Heiko Schocher
Tested-by: Reinhard Meyer
27 Oct, 2010
2 commits
-
For the "fixloop" implementation in start.S a number of different
instructions was used. Unify code so all architectures use "blo"
here because it is more robust in case of incorrect alignments.Signed-off-by: Wolfgang Denk
Cc: Albert ARIBAUD
Cc: Minkyu Kang
Cc: Sandeep Paulraj
Cc: Prafulla Wadaskar
Cc: Stefano Babic
Cc: Marek Vasut
Acked-by: Heiko Schocher -
CONFIG_SYS_GBL_DATA_SIZE has always been just a bad workarond for not
being able to use "sizeof(struct global_data)" in assembler files.
Recent experience has shown that manual synchronization is not
reliable enough. This patch renames CONFIG_SYS_GBL_DATA_SIZE into
GENERATED_GBL_DATA_SIZE which gets automatically generated by the
asm-offsets tool. In the result, all definitions of this value can be
deleted from the board config files. We have to make sure that all
files that reference such data include the new file.No other changes have been done yet, but it is obvious that similar
changes / simplifications can be done for other, related macro
definitions as well.Signed-off-by: Wolfgang Denk
Acked-by: Kumar Gala
19 Oct, 2010
1 commit
-
The change is currently needed to be able to remove the board
configuration scripting from the top level Makefile and replace it by
a simple, table driven script.Moving this configuration setting into the "CONFIG_*" name space is
also desirable because it is needed if we ever should move forward to
a Kconfig driven configuration system.Signed-off-by: Wolfgang Denk
11 Oct, 2010
1 commit
-
Generalized misuse of ble within relocation and bss
initialization loops caused one iteration too many.
Instead of ble ('branch if lower or equal'), use
blo ('branch if lower').While we're at it, fix all 'addreee' typos.
Signed-off-by: Albert Aribaud
20 Sep, 2010
1 commit
-
Change the implementation for arm_intcm to relocate the code to
an arbitrary address in RAM.Portions of this work were supported by funding from
the CE Linux Forum.Signed-off-by: Heiko Schocher
23 Jun, 2010
1 commit
-
The ARM ABI requires that the stack be aligned to 8 bytes as it is noted
in Procedure Call Standard for the ARM Architecture:
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042d/index.htmlUnaligned SP also causes the problem with variable-length arrays
allocation when VLA address becomes less than stack pointer during
aligning of this address, so the next 'push' in the stack overwrites
first 4 bytes of VLA.Signed-off-by: Vitaly Kuzmichev
13 Apr, 2010
1 commit
-
Signed-off-by: Peter Tyser