Skip to content
Snippets Groups Projects
  1. May 06, 2021
  2. Apr 29, 2021
  3. Apr 28, 2021
  4. Apr 26, 2021
  5. Apr 25, 2021
  6. Apr 23, 2021
  7. Apr 22, 2021
  8. Apr 20, 2021
  9. Apr 19, 2021
    • Alexandru Gagniuc's avatar
      Revert "spl: Drop bd_info in the data section" · 58b504e5
      Alexandru Gagniuc authored and Tom Rini's avatar Tom Rini committed
      
      This reverts commit 38d6b7eb.
      
      struct global_data contains a pointer to the bd_info structure. This
      pointer was populated spl_set_bd() to a pre-allocated bd_info in the
      ".data" section. The referenced commit replaced this mechanism to one
      that uses malloc(). That new mechanism is only used if SPL_ALLOC_BD=y.
      which very few boards do.
      
      The result is that (struct global_data)->bd is NULL in SPL on most
      platforms. This breaks falcon mode, since arch_fixup_fdt() tries to
      access (struct global_data)->bd and set the "/memory" node in the
      devicetree. The result is that the "/memory" node contains garbage
      values, causing linux to panic() as it sets up the page table.
      
      Instead of trying to fix the mess, potentially causing other issues,
      revert to the code that worked, while this change is reworked.
      
      Signed-off-by: default avatarAlexandru Gagniuc <mr.nuke.me@gmail.com>
      58b504e5
Loading