File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ config LOONGARCH
18
18
select ARCH_HAS_CURRENT_STACK_POINTER
19
19
select ARCH_HAS_FORTIFY_SOURCE
20
20
select ARCH_HAS_KCOV
21
+ select ARCH_HAS_KERNEL_FPU_SUPPORT if CPU_HAS_FPU
21
22
select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS
22
23
select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
23
24
select ARCH_HAS_PTE_SPECIAL
Original file line number Diff line number Diff line change 26
26
32bit-emul = elf32loongarch
27
27
64bit-emul = elf64loongarch
28
28
29
+ CC_FLAGS_FPU := -mfpu=64
30
+ CC_FLAGS_NO_FPU := -msoft-float
31
+
29
32
ifdef CONFIG_UNWINDER_ORC
30
33
orc_hash_h := arch/$(SRCARCH ) /include/generated/asm/orc_hash.h
31
34
orc_hash_sh := $(srctree ) /scripts/orc_hash.sh
@@ -59,7 +62,7 @@ ld-emul = $(64bit-emul)
59
62
cflags-y += -mabi=lp64s
60
63
endif
61
64
62
- cflags-y += -pipe -msoft-float
65
+ cflags-y += -pipe $( CC_FLAGS_NO_FPU )
63
66
LDFLAGS_vmlinux += -static -n -nostdlib
64
67
65
68
# When the assembler supports explicit relocation hint, we must use it.
Original file line number Diff line number Diff line change 21
21
22
22
struct sigcontext ;
23
23
24
+ #define kernel_fpu_available () cpu_has_fpu
24
25
extern void kernel_fpu_begin (void );
25
26
extern void kernel_fpu_end (void );
26
27
You can’t perform that action at this time.
0 commit comments