Skip to content
Snippets Groups Projects
  • Michal Simek's avatar
    1020286e
    microblaze: Fix bd_info pointer · 1020286e
    Michal Simek authored
    
    Patch "Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value"
    (sha1: 25ddd1fb)
    introduce GENERATED_GBL_DATA_SIZE which is sizeof aligned gd_t
    (currently 0x40).
    Microblaze configs used 0x40(128) because this place also contained
    board info structure which lies on the top of ram.
    
    U-Boot is placed to the top of the ram (for example 0xd7ffffff)
    and bd structure was moved out of ram.
    
    This patch is fixing this scheme with GENERATED_BD_INFO_SIZE
    which swap global data and board info structures.
    
    For example:
    Current: gd 0xd7ffffc0, bd 0xd8000000
    Fixed:   gd 0xd7ffffc0, bd 0xd7ffff90
    
    Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
    1020286e
    History
    microblaze: Fix bd_info pointer
    Michal Simek authored
    
    Patch "Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value"
    (sha1: 25ddd1fb)
    introduce GENERATED_GBL_DATA_SIZE which is sizeof aligned gd_t
    (currently 0x40).
    Microblaze configs used 0x40(128) because this place also contained
    board info structure which lies on the top of ram.
    
    U-Boot is placed to the top of the ram (for example 0xd7ffffff)
    and bd structure was moved out of ram.
    
    This patch is fixing this scheme with GENERATED_BD_INFO_SIZE
    which swap global data and board info structures.
    
    For example:
    Current: gd 0xd7ffffc0, bd 0xd8000000
    Fixed:   gd 0xd7ffffc0, bd 0xd7ffff90
    
    Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>