Skip to content
Snippets Groups Projects
  1. Oct 04, 2008
  2. Oct 02, 2008
    • David Gibson's avatar
      libfdt: Add function to explicitly expand aliases · 9a6cf73a
      David Gibson authored
      
      Kumar has already added alias expansion to fdt_path_offset().
      However, in some circumstances it may be convenient for the user of
      libfdt to explicitly get the string expansion of an alias.  This patch
      adds a function to do this, fdt_get_alias(), and uses it to implement
      fdt_path_offset().
      
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      9a6cf73a
    • Stefan Roese's avatar
      fdt: Overwrite /chosen node in bootm if it already exists in the dtb · 3e385772
      Stefan Roese authored
      
      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: default avatarStefan Roese <sr@denx.de>
      3e385772
    • Jon Loeliger's avatar
      Fix an overflow case in fdt_offset_ptr() detected by GCC 4.3. · 741a6d01
      Jon Loeliger authored
      
      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: default avatarJon Loeliger <jdl@freescale.com>
      741a6d01
    • David Gibson's avatar
      libfdt: Fix bugs in fdt_get_path() · bbdbc7cb
      David Gibson authored
      
      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: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      bbdbc7cb
  3. Sep 22, 2008
  4. Sep 21, 2008
  5. Sep 19, 2008
  6. Sep 18, 2008
  7. Sep 17, 2008
  8. Sep 16, 2008
  9. Sep 13, 2008
  10. Sep 12, 2008
Loading