1. 14 1月, 2011 1 次提交
  2. 18 12月, 2010 2 次提交
  3. 28 11月, 2010 1 次提交
  4. 27 11月, 2010 1 次提交
    • W
      arch/powerpc/*/config.mk: make CONFIG_SYS_LDSCRIPT settings work · fa11dbe5
      Wolfgang Denk 提交于
      As we try to get rid of board specific config.mk files we must
      provide a way for board specific settings of the LDSCRIPT variable
      (path to the linker script) where needed.
      
      We now implement the following hierarchy:
      
      - Highest priority has a "#define CONFIG_SYS_LDCONFIG" in the board
        config file.
      - If CONFIG_SYS_LDCONFIG is not set, and the system is booting from
        NAND (CONFIG_NAND_SPL is set), then a board specific linker
        script board/$(BOARDDIR)/u-boot-nand.lds gets used.
      - If we are not booting from NAND, we test if a processor specific
        linker script arch/powerpc/cpu/$(CPU)/u-boot.lds exists; if so we
        use that.
      - As default, arch/powerpc/config.mk gets used.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Kim Phillips <kim.phillips@freescale.com>
      Cc: Kumar Gala <kumar.gala@freescale.com>
      Cc: Andy Fleming <afleming@gmail.com>
      Acked-by: NStefan Roese <sr@denx.de>
      fa11dbe5
  5. 18 11月, 2010 1 次提交
    • S
      Switch from archive libraries to partial linking · 6d8962e8
      Sebastien Carlier 提交于
      Before this commit, weak symbols were not overridden by non-weak symbols
      found in archive libraries when linking with recent versions of
      binutils.  As stated in the System V ABI, "the link editor does not
      extract archive members to resolve undefined weak symbols".
      
      This commit changes all Makefiles to use partial linking (ld -r) instead
      of creating library archives, which forces all symbols to participate in
      linking, allowing non-weak symbols to override weak symbols as intended.
      This approach is also used by Linux, from which the gmake function
      cmd_link_o_target (defined in config.mk and used in all Makefiles) is
      inspired.
      
      The name of each former library archive is preserved except for
      extensions which change from ".a" to ".o".  This commit updates
      references accordingly where needed, in particular in some linker
      scripts.
      
      This commit reveals board configurations that exclude some features but
      include source files that depend these disabled features in the build,
      resulting in undefined symbols.  Known such cases include:
      - disabling CMD_NET but not CMD_NFS;
      - enabling CONFIG_OF_LIBFDT but not CONFIG_QE.
      Signed-off-by: NSebastien Carlier <sebastien.carlier@gmail.com>
      6d8962e8
  6. 15 11月, 2010 1 次提交
  7. 27 10月, 2010 2 次提交
    • W
      Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value · 25ddd1fb
      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 <asm-offsets.h> 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: NWolfgang Denk <wd@denx.de>
      Acked-by: NKumar Gala <galak@kernel.crashing.org>
      25ddd1fb
    • W
      Rename CONFIG_SYS_INIT_RAM_END into CONFIG_SYS_INIT_RAM_SIZE · 553f0982
      Wolfgang Denk 提交于
      CONFIG_SYS_INIT_RAM_END was a misnomer as it suggests this might be
      some end address; to make the meaning more clear we rename it into
      CONFIG_SYS_INIT_RAM_SIZE
      
      No other code changes are performed in this patch, only minor editing
      of white space (due to the changed length) and the comments was done,
      where noticed.
      
      Note that the code for the PATI and cmi_mpc5xx board configurations
      looks seriously broken.  Last known maintainers on Cc:
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Cc: Denis Peter <d.peter@mpl.ch>
      Cc: Martin Winistoerfer <martinwinistoerfer@gmx.ch>
      Acked-by: NKumar Gala <galak@kernel.crashing.org>
      553f0982
  8. 20 10月, 2010 2 次提交
  9. 19 10月, 2010 3 次提交
    • J
      powerpc: do not fixup NULL ptrs · d1e0b10a
      Joakim Tjernlund 提交于
      The fixup routine must not fixup NULL pointers.
      Problem can be seen by
       char *testfun(void) __attribute__((weak));
       char *(*myfun)(void) = testfun;
      
      Then add
        printf("myfun:%p, &myfun:%p\n", myfun, &myfun);
      before relocation and after relocation.
      myfun should be NULL in both cases but it is not.
      Signed-off-by: NJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
      d1e0b10a
    • P
      powerpc: Cleanup BOOTFLAG_* references · d98b0523
      Peter Tyser 提交于
      Now that warm booting is not supported, there isn't a need for the
      BOOTFLAG_COLD and BOOTFLAG_WARM defines, so remove them.
      
      Note that this change makes the board info bd_bootflags field useless.
      It will always be set to 0, but we leave it around so that we don't
      break the board info structure that some OSes are expecting to be passed
      from U-Boot.
      Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
      d98b0523
    • W
      Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE · 14d0a02a
      Wolfgang Denk 提交于
      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: NWolfgang Denk <wd@denx.de>
      14d0a02a
  10. 13 10月, 2010 1 次提交
  11. 16 7月, 2010 2 次提交
  12. 05 7月, 2010 1 次提交
    • W
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk 提交于
      The hush shell dynamically allocates (and re-allocates) memory for the
      argument strings in the "char *argv[]" argument vector passed to
      commands.  Any code that modifies these pointers will cause serious
      corruption of the malloc data structures and crash U-Boot, so make
      sure the compiler can check that no such modifications are being done
      by changing the code into "char * const argv[]".
      
      This modification is the result of debugging a strange crash caused
      after adding a new command, which used the following argument
      processing code which has been working perfectly fine in all Unix
      systems since version 6 - but not so in U-Boot:
      
      int main (int argc, char **argv)
      {
      	while (--argc > 0 && **++argv == '-') {
      /* ====> */	while (*++*argv) {
      			switch (**argv) {
      			case 'd':
      				debug++;
      				break;
      			...
      			default:
      				usage ();
      			}
      		}
      	}
      	...
      }
      
      The line marked "====>" will corrupt the malloc data structures and
      usually cause U-Boot to crash when the next command gets executed by
      the shell.  With the modification, the compiler will prevent this with
      an
      	error: increment of read-only location '*argv'
      
      N.B.: The code above can be trivially rewritten like this:
      
      	while (--argc > 0 && **++argv == '-') {
      		char *arg = *argv;
      		while (*++arg) {
      			switch (*arg) {
      			...
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      54841ab5
  13. 22 4月, 2010 1 次提交