• Mathieu Desnoyers's avatar
    rseq/selftests: mips: use break instruction for RSEQ_SIG · 16b96b6e
    Mathieu Desnoyers authored
    Use break as guard instruction for the restartable sequence abort
    handler.
    
    Previously, the chosen signature was simply data, based on the
    assumption that it could always sit in a literal pool. However,
    some compilation environments favor disabling literal pool. Therefore,
    ensure the signature is a valid uncommon trap instruction.
    Suggested-by: default avatarPaul Burton <paul.burton@mips.com>
    Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@efficios.com>
    CC: Paul Burton <paul.burton@mips.com>
    CC: James Hogan <jhogan@kernel.org>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: Boqun Feng <boqun.feng@gmail.com>
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    16b96b6e
rseq-mips.h 22.4 KB