Commit c8785794 authored by Julien Thierry's avatar Julien Thierry Committed by Will Deacon
Browse files

arm64: Remove unused assembly macro



As of commit 4141c857 ("arm64: convert
raw syscall invocation to C"), moving syscall handling from assembly to
C, the macro mask_nospec64 is no longer referenced.

Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Signed-off-by: default avatarJulien Thierry <julien.thierry@arm.com>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent e21a712a
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -123,17 +123,6 @@ alternative_else
alternative_endif
	.endm

/*
 * Sanitise a 64-bit bounded index wrt speculation, returning zero if out
 * of bounds.
 */
	.macro	mask_nospec64, idx, limit, tmp
	sub	\tmp, \idx, \limit
	bic	\tmp, \tmp, \idx
	and	\idx, \idx, \tmp, asr #63
	csdb
	.endm

/*
 * NOP sequence
 */