ARM64 requires some tweaks; different header & kernel_neon_begin|end()

Reported-by: eibisidi
This commit is contained in:
Kaiwan N Billimoria
2024-11-26 10:27:51 +05:30
parent 6d800a83b2
commit 068f0c3ed8
2 changed files with 10 additions and 1 deletions

View File

@@ -100,6 +100,8 @@ ifeq (${MYDEBUG}, y)
else
ccflags-y += -UDEBUG
endif
ccflags-remove-y += -mgeneral-regs-only
# We always keep the dynamic debug facility enabled; this allows us to turn
# dynamically turn on/off debug printk's later... To disable it simply comment
# out the following line

View File

@@ -20,8 +20,15 @@
#include <linux/init.h>
#include <linux/module.h>
//#include <linux/kernel.h>
#ifdef CONFIG_X86
#include <asm/fpu/api.h>
#endif
#ifdef CONFIG_ARM64
#include <asm/neon.h>
#define kernel_fpu_begin kernel_neon_begin
#define kernel_fpu_end kernel_neon_end
#endif
MODULE_AUTHOR("<insert your name here>");
MODULE_DESCRIPTION("LKP2E book:ch5/fp_in_lkm: no performing FP \