• Max Filippov's avatar
    xtensa: fixes for configs without loop option · 84e3da3b
    Max Filippov authored
    commit 5029615e upstream.
    
    Build-time fixes:
    - make lbeg/lend/lcount save/restore conditional on kernel entry;
    - don't clear lcount in platform_restart functions unconditionally.
    
    Run-time fixes:
    - use correct end of range register in __endla paired with __loopt, not
      the unused temporary register. This fixes .bss zero-initialization.
      Update comments in asmmacro.h;
    - don't clobber a10 in the usercopy that leads to access to unmapped
      memory.
    Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
    [ luis: backported to 3.16: adjusted context ]
    Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
    84e3da3b
setup.c 6.54 KB