Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Stephen Warren's avatar
    a737028e
    arm: initialize gd for AArch64 · a737028e
    Stephen Warren authored
    
    Commit adc421e4 "arm: move gd handling outside of C code" removed
    the call to arch_setup_gd() on ARM and replaced it with assembly code
    in crt0.S. However, AArch64 uses a different startup file, and the same
    change was not made to it. This leaves gd uninitialized on AArch64, which
    typically leads to hangs or crashes. This change fixes that.
    
    Fixes: adc421e4 ("arm: move gd handling outside of C code")
    Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
    a737028e
    History
    arm: initialize gd for AArch64
    Stephen Warren authored
    
    Commit adc421e4 "arm: move gd handling outside of C code" removed
    the call to arch_setup_gd() on ARM and replaced it with assembly code
    in crt0.S. However, AArch64 uses a different startup file, and the same
    change was not made to it. This leaves gd uninitialized on AArch64, which
    typically leads to hangs or crashes. This change fixes that.
    
    Fixes: adc421e4 ("arm: move gd handling outside of C code")
    Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>