]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Avoid breakage caused by .altmacro in fpsimd save/restore macros
authorDave P Martin <Dave.Martin@arm.com>
Thu, 29 Jan 2015 16:24:43 +0000 (16:24 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 29 Jan 2015 17:24:39 +0000 (17:24 +0000)
commit81e6645f990af1a9a09e6d58cb64b5826d2195eb
tree1f383325c1b8793a57696eccebd6a34870090ed6
parent48f0e11d05893c9816cbc7e64d95d595a9c789b2
arm64: Avoid breakage caused by .altmacro in fpsimd save/restore macros

Alternate macro mode is not a property of a macro definition, but a
gas runtime state that alters the way macros are expanded for ever
after (until .noaltmacro is seen).

This means that subsequent assembly code that calls other macros can
break if fpsimdmacros.h is included.

Since these instruction sequences are simple (if dull -- but in a
good way), this patch solves the problem by simply expanding the
.irp loops.  The pre-existing fpsimd_{save,restore} macros weren't
rolled with .irp anyway and the sequences affected are short, so
this change restores consistency at little cost.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/fpsimdmacros.h