arm64/sve: Signal frame and context structure definition
authorDave Martin <Dave.Martin@arm.com>
Tue, 31 Oct 2017 15:51:03 +0000 (15:51 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 3 Nov 2017 15:24:14 +0000 (15:24 +0000)
commitd0b8cd3187889476144bd9b13bf36a932c3e7952
tree1d902181aff99d313fbf9b347663fd846afd7c9e
parentddd25ad1fde8456810dee1b26a870395bcd6339d
arm64/sve: Signal frame and context structure definition

This patch defines the representation that will be used for the SVE
register state in the signal frame, and implements support for
saving and restoring the SVE registers around signals.

The same layout will also be used for the in-kernel task state.

Due to the variability of the SVE vector length, it is not possible
to define a fixed C struct to describe all the registers.  Instead,
Macros are defined in sigcontext.h to facilitate access to the
parts of the structure.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/uapi/asm/sigcontext.h