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

    Albert ARIBAUD
     

04 Oct, 2012

1 commit


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

    Zhong Hongbo
     

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; done

    Discussion:
    http://patchwork.ozlabs.org/patch/84988/

    Signed-off-by: Jason Kridner
    Signed-off-by: Joel A Fernandes
    Signed-off-by: Sandeep Paulraj

    Jason Kridner
     

05 Aug, 2011

1 commit


26 Jul, 2011

1 commit


28 Mar, 2011

2 commits


02 Feb, 2011

1 commit


14 Dec, 2010

1 commit


09 Dec, 2010

4 commits


27 Nov, 2010

1 commit


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

    Wolfgang Denk
     
  • 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

    Wolfgang Denk
     

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

    Wolfgang Denk
     
  • 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

    Wolfgang Denk
     

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

    Wolfgang Denk
     

11 Oct, 2010

1 commit


20 Sep, 2010

1 commit


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.html

    Unaligned 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

    Vitaly Kuzmichev
     

13 Apr, 2010

1 commit