ARM: 9292/1: vfp: Pass thread_info pointer to vfp_support_entry
authorArd Biesheuvel <ardb@kernel.org>
Tue, 21 Mar 2023 11:01:02 +0000 (12:01 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 11 Apr 2023 10:07:08 +0000 (11:07 +0100)
commitdae904d96ad6a5fa79bd9d99a3decf93685d398b
treead23ef12e2f542d51e76bb4cf489f40b69f90d91
parent197b6b60ae7bc51dd0814953c562833143b292aa
ARM: 9292/1: vfp: Pass thread_info pointer to vfp_support_entry

Instead of dereferencing thread_info in do_vfp, pass the thread_info
pointer to vfp_support_entry via R1. That way, we only use a single
caller save register, which makes it easier to convert do_vfp to C code
in a subsequent patch.

Note that, unlike the CPU number, which can change due to preemption,
passing the thread_info pointer can safely be done with preemption
enabled.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/vfp/entry.S
arch/arm/vfp/vfphw.S