aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/kernel/xscale-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/xscale-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/xscale-cp0.c')
-rw-r--r--arch/arm/kernel/xscale-cp0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/kernel/xscale-cp0.c b/arch/arm/kernel/xscale-cp0.c
index ed4f6e77616d..00d00d3aae97 100644
--- a/arch/arm/kernel/xscale-cp0.c
+++ b/arch/arm/kernel/xscale-cp0.c
@@ -166,6 +166,7 @@ static int __init xscale_cp0_init(void)
pr_info("XScale iWMMXt coprocessor detected.\n");
elf_hwcap |= HWCAP_IWMMXT;
thread_register_notifier(&iwmmxt_notifier_block);
+ register_iwmmxt_undef_handler();
#endif
} else {
pr_info("XScale DSP coprocessor detected.\n");