aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/kernel/pj4-cp0.c
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2023-03-20 00:07:20 +0100
committerArd Biesheuvel <[email protected]>2023-05-17 15:08:22 +0200
commit303d6da167dcbc3dd89adf3ca4e36c369950ed01 (patch)
tree6041481a3b42a3ec4c2940e02201128396b47e2f /arch/arm/kernel/pj4-cp0.c
parent8bcba70cb5c2204a011e06278a1fbfb1213e1df1 (diff)
ARM: iwmmxt: Use undef hook to enable coprocessor for task
Define a undef hook to deal with undef exceptions triggered by iwmmxt instructions that were issued with the coprocessor disabled. This removes the dependency on the coprocessor dispatch code in entry-armv.S, which will be made NWFPE-only in a subsequent patch. Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]>
Diffstat (limited to 'arch/arm/kernel/pj4-cp0.c')
-rw-r--r--arch/arm/kernel/pj4-cp0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/kernel/pj4-cp0.c b/arch/arm/kernel/pj4-cp0.c
index 1d1fb22f44f3..4bca8098c4ff 100644
--- a/arch/arm/kernel/pj4-cp0.c
+++ b/arch/arm/kernel/pj4-cp0.c
@@ -126,6 +126,7 @@ static int __init pj4_cp0_init(void)
pr_info("PJ4 iWMMXt v%d coprocessor enabled.\n", vers);
elf_hwcap |= HWCAP_IWMMXT;
thread_register_notifier(&iwmmxt_notifier_block);
+ register_iwmmxt_undef_handler();
#endif
return 0;