Skip to content
Snippets Groups Projects
  1. Oct 21, 2011
  2. Apr 13, 2011
  3. Mar 31, 2011
  4. Mar 27, 2011
  5. Jul 04, 2010
    • Wolfgang Denk's avatar
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk authored
      
      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: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      54841ab5
  6. May 28, 2010
  7. Oct 27, 2009
  8. Oct 03, 2009
  9. Sep 02, 2009
  10. Jul 20, 2009
  11. Oct 14, 2008
  12. Apr 08, 2008
  13. Mar 02, 2008
    • Woodruff, Richard's avatar
      Fix alignment error on ARM for modules · 118978c8
      Woodruff, Richard authored
      Fix alignment fault on ARM when running modules.  With out an explicit
      linker file gcc4.2.1 will half word align __bss_start's value.  The word
      dereference will crash hello_world.
      
      signed-off-by Richard Woodruff <r-woodruff2@ti.com>
      118978c8
  14. Feb 14, 2008
    • Wolfgang Denk's avatar
      PPC: Use r2 instead of r29 as global data pointer · e7670f6c
      Wolfgang Denk authored
      
      R29 was an unlucky choice as with recent toolchains (gcc-4.2.x) gcc
      will refuse to use load/store multiple insns; instead, it issues a
      list of simple load/store instructions upon function entry and exit,
      resulting in bigger code size, which in turn makes the build for a
      few boards fail.
      
      Use r2 instead.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      e7670f6c
  15. Dec 27, 2007
  16. May 13, 2007
  17. Mar 09, 2007
  18. Oct 24, 2006
  19. Jun 08, 2006
  20. Apr 20, 2006
  21. Mar 12, 2006
  22. Oct 10, 2004
  23. Jul 10, 2004
    • Wolfgang Denk's avatar
      Patches by Yasushi Shoji, 29 Jun 2004: · 857cad37
      Wolfgang Denk authored
      - add empty include/asm-microblaze/processor.h
      - add to CREDITS and MAINTAINERS
      - add gd initialization
      - add MicroBlaze and SUZAKU board to MAKEALL script
      - add reset support for SUZAKU
      - add flush_cache() for MicroBlaze
      - add CFG_FLASH_SIZE to include/configs/suzaku.h since we have fixed
        size flash memory on SUZAKU
      857cad37
  24. Jul 01, 2004
  25. Apr 18, 2004
  26. Apr 12, 2004
  27. Feb 12, 2004
    • Wolfgang Denk's avatar
      * Some code cleanup · bf9e3b38
      Wolfgang Denk authored
      * Patch by Josef Baumgartner, 10 Feb 2004:
        Fixes for Coldfire port
      
      * Patch by Brad Kemp, 11 Feb 2004:
        Fix CFI flash driver problems
      bf9e3b38
  28. Oct 08, 2003
    • Wolfgang Denk's avatar
      * Patch by Scott McNutt, 04 Oct 2003: · 4a551709
      Wolfgang Denk authored
        - add support for Altera Nios-32 CPU
        - add support for Nios Cyclone Development Kit (DK-1C20)
      
      * Patch by Steven Scholz, 29 Sep 2003:
        - A second parameter for bootm overwrites the load address for
          "Standalone Application" images.
        - bootm sets environment variable "filesize" to the resulting
          (uncompressed) data length for "Standalone Application" images
          when autostart is set to "no". Now you can do something like
             if bootm $fpgadata $some_free_ram ; then
                     fpga load 0 $some_free_ram $filesize
             fi
      
      * Patch by Denis Peter, 25 Sept 2003:
        add support for the MIP405 Rev. C board
      4a551709
  29. Jul 26, 2003
    • Wolfgang Denk's avatar
      * Allow crc32 to be used at address 0x000 · 77846748
      Wolfgang Denk authored
      * Provide consistent interface to standalone applications to access
        the 'global_data' structure
        Provide a doc/README.standalone more useful to users/developers.
      
      * Make IceCube MGT5100 FEC driver work
      77846748
  30. Jul 24, 2003
Loading