android_kernel_xiaomi_sm7250/arch/arm64/include/uapi
Will Deacon 777e0b0cb7 BACKPORT: arm64: Add support for SB barrier and patch in over DSB; ISB sequences
We currently use a DSB; ISB sequence to inhibit speculation in set_fs().
Whilst this works for current CPUs, future CPUs may implement a new SB
barrier instruction which acts as an architected speculation barrier.

On CPUs that support it, patch in an SB; NOP sequence over the DSB; ISB
sequence and advertise the presence of the new instruction to userspace.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Change-Id: I28e2640aff2734576f64c508cef83ad411e8d3ab
2022-11-12 11:21:30 +00:00
..
asm BACKPORT: arm64: Add support for SB barrier and patch in over DSB; ISB sequences 2022-11-12 11:21:30 +00:00