1. 13 10月, 2008 12 次提交
  2. 10 10月, 2008 4 次提交
  3. 09 10月, 2008 7 次提交
  4. 08 10月, 2008 5 次提交
  5. 07 10月, 2008 1 次提交
  6. 04 10月, 2008 1 次提交
  7. 03 10月, 2008 1 次提交
  8. 02 10月, 2008 4 次提交
    • M
      cfi_flash: do not reset flash when probe fails · 2215987e
      Mike Frysinger 提交于
      The CFI flash driver starts at flash_init() which calls down into
      flash_get_size().  This starts by calling flash_detect_cfi().  If said
      function fails, flash_get_size() finishes by attempting to reset the
      flash.  Unfortunately, it does this with an info->portwidth set to 0x10
      which filters down into flash_make_cmd() and that happily smashes the
      stack by sticking info->portwidth bytes into a cfiword_t variable that
      lives on the stack.  On a 64bit system you probably won't notice, but
      killing the last 8 bytes on a 32bit system usually leads to a corrupt
      return address.  Which is what happens on a Blackfin system.
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      Signed-off-by: NStefan Roese <sr@denx.de>
      2215987e
    • S
      fdt: Overwrite /chosen node in bootm if it already exists in the dtb · 3e385772
      Stefan Roese 提交于
      Set force parameter in fdt_chosen() call in do_bootm_linux() call.
      Without this, the chosen node is not overwritten if it already
      exists.
      Signed-off-by: NStefan Roese <sr@denx.de>
      3e385772
    • J
      Fix an overflow case in fdt_offset_ptr() detected by GCC 4.3. · 741a6d01
      Jon Loeliger 提交于
      Using Gcc 4.3 detected this problem:
      
          ../dtc/libfdt/fdt.c: In function 'fdt_next_tag':
          ../dtc/libfdt/fdt.c:82: error: assuming signed overflow does not
          occur when assuming that (X + c) < X is always false
      
      To fix the problem, treat the offset as an unsigned int.
      
      The problem report and proposed fix were provided
      by Steve Papacharalambous <stevep@freescale.com>.
      Signed-off-by: NJon Loeliger <jdl@freescale.com>
      741a6d01
    • D
      libfdt: Fix bugs in fdt_get_path() · bbdbc7cb
      David Gibson 提交于
      The current implementation of fdt_get_path() has a couple of bugs,
      fixed by this patch.
      
      First, contrary to its documentation, on success it returns the length
      of the node's path, rather than 0.  The testcase is correspondingly
      wrong, and the patch fixes this as well.
      
      Second, in some circumstances, it will return -FDT_ERR_BADOFFSET
      instead of -FDT_ERR_NOSPACE when given insufficient buffer space.
      Specifically this happens when there is insufficient space even to
      hold the path's second last component.  This behaviour is corrected,
      and the testcase updated to check it.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      bbdbc7cb
  9. 01 10月, 2008 2 次提交
  10. 24 9月, 2008 3 次提交