[PATCH 01/10] arm64: pt_regs: assert pt_regs is a multiple of 16 bytes

Mark Brown broonie at kernel.org
Thu Oct 10 07:23:26 PDT 2024


On Thu, Oct 10, 2024 at 11:15:01AM +0100, Mark Rutland wrote:
> To ensure that the stack is correctly aligned when branching to C code,
> we require struct pt_regs to be a multiple of 16 bytes, as noted in a
> comment.
> 
> Add an explicit assertion for this, so that any accidental violation of
> this requirement will be caught by the compiler.

Reviewed-by: Mark Brown <broonie at kernel.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20241010/11f26a47/attachment.sig>


More information about the linux-arm-kernel mailing list