[PATCH v10 07/40] arm64/gcs: Add manual encodings of GCS instructions

Catalin Marinas catalin.marinas at arm.com
Fri Aug 16 04:10:48 PDT 2024


On Thu, Aug 01, 2024 at 01:06:34PM +0100, Mark Brown wrote:
> Define C callable functions for GCS instructions used by the kernel. In
> order to avoid ambitious toolchain requirements for GCS support these are
> manually encoded, this means we have fixed register numbers which will be
> a bit limiting for the compiler but none of these should be used in
> sufficiently fast paths for this to be a problem.
> 
> Note that GCSSTTR is used to store to EL0.
> 
> Reviewed-by: Thiago Jung Bauermann <thiago.bauermann at linaro.org>
> Signed-off-by: Mark Brown <broonie at kernel.org>

Acked-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-riscv mailing list