• Paul Burton's avatar
    MIPS: genex: Add Loongson3 LL/SC workaround to ejtag_debug_handler · 12dbb04f
    Paul Burton authored
    In ejtag_debug_handler we use LL & SC instructions to acquire & release
    an open-coded spinlock. For Loongson3 systems affected by LL/SC errata
    this requires that we insert a sync instruction prior to the LL in order
    to ensure correct behavior of the LL/SC loop.
    Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
    Cc: linux-mips@vger.kernel.org
    Cc: Huacai Chen <chenhc@lemote.com>
    Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
    Cc: linux-kernel@vger.kernel.org
    12dbb04f
genex.S 14 KB