Skip to content
Snippets Groups Projects
  1. Jan 30, 2015
  2. Jan 24, 2015
  3. Jan 14, 2015
  4. Jan 13, 2015
  5. Dec 29, 2014
    • Alexey Brodkin's avatar
      initcall: add explicit hint if initcall was relocated · e38d1cb2
      Alexey Brodkin authored
      
      Commit "initcall: Improve debugging support" makes sense and indeed
      simplifies process of matching initcalls executed with static
      disassembly.
      
      Until you are debugging relocation functionality.
      
      Existign output may make you think that at some point execution somehow
      returned back to non-relocated area. And there're many reasons/problems
      that may provoke this behavior.
      
      In order to make things clear let's add explicit mention in case initall
      was actually relocated like this:
      --->---
      initcall: 810015f8
      Relocation Offset is: 0efcf000
      Relocating to 8ffcf000, new gd at 8fdced3c, sp at 8fdced20
      initcall: 810015b8
      initcall: 8ffd093c
      initcall: 8ffd0a14
      initcall: 81001940 (relocated to 8ffd0940)
      initcall: 81001958 (relocated to 8ffd0958)
      --->---
      
      Note "unexpected" jump from 0x8f... area to 0x81... area.
      Without explanation this raises many questions: execution jumped in
      relocated area right as expected and then for some reason returned back?
      
      But I hope comment in brackets will save some time for those curious
      developers who are careful enough to catch "unexpected jump to pre-reloc
      area" or those unlucky ones who'll have to deal with relocation
      debugging.
      
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Minkyu Kang <mk7.kang@samsung.com>
      e38d1cb2
  6. Dec 18, 2014
  7. Dec 14, 2014
  8. Dec 11, 2014
  9. Dec 08, 2014
  10. Nov 27, 2014
  11. Nov 25, 2014
  12. Nov 23, 2014
  13. Nov 22, 2014
  14. Nov 21, 2014
  15. Nov 20, 2014
    • Masahiro Yamada's avatar
      include: move various macros to include/linux/kernel.h · cba1da49
      Masahiro Yamada authored
      
      U-Boot has imported various utility macros from Linux
      scattering them to various places without consistency.
      
      In include/common.h are min, max, min3, max3, ARRAY_SIZE, ALIGN,
      container_of, DIV_ROUND_UP, etc.
      In include/linux/compat.h are min_t, max_t, round_up, round_down,
      etc.
      We also have duplicated defines of min_t in some *.c files.
      
      Moreover, we are suffering from too cluttered include/common.h.
      
      This commit moves various macros that originate in
      include/linux/kernel.h of Linux to their original position.
      
      Note:
      This commit simply moves the macros; the macros roundup,
      min, max, min2, max3, ARRAY_SIZE are different
      from those of Linux at this point.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      cba1da49
    • Masahiro Yamada's avatar
      replace DIV_ROUND with DIV_ROUND_CLOSEST · 4515992f
      Masahiro Yamada authored
      
      The Linux-compatible macro DIV_ROUND_CLOSEST is a bit more flexible
      and safer than DIV_ROUND.
      
      For example,
        foo = DIV_ROUND_CLOSEST(x, y++)
      works expectedly, but
        foo = DIV_ROUND(x, y++)
      does not. (y is incremented twice.)
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      4515992f
  16. Oct 27, 2014
Loading