• H
    MIPS: Fix ejtag handler on SMP · c8bf3805
    Heiher 提交于
    On SMP systems, the shared ejtag debug buffer may be overwritten by
    other cores, because every cores can generate ejtag exception at
    same time.
    
    Unfortunately, in that context, it's difficult to relax more registers
    to access per cpu buffers. so use ll/sc to serialize the access.
    
    [paul.burton@mips.com:
      This could in theory be backported at least as far back as the
      beginning of the git era, however in general it's exceedingly rare
      that anyone would hit this without further changes, so it doesn't seem
      worthwhile marking for backport.]
    Signed-off-by: NHeiher <r@hev.cc>
    Patchwork: https://patchwork.linux-mips.org/patch/19507/Signed-off-by: NPaul Burton <paul.burton@mips.com>
    Cc: jhogan@kernel.org
    Cc: ralf@linux-mips.org
    c8bf3805
genex.S 13.9 KB