kernel modules: hack up quick floating point example

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-06-02 00:00:01 +00:00
parent 7f917af66b
commit 819ef42ea4
5 changed files with 121 additions and 11 deletions

View File

@@ -13,6 +13,11 @@ ccflags-y := \
-Wno-declaration-after-statement \
$(CCFLAGS)
ifeq ($(ARCH),x86)
# https://github.com/cirosantilli/linux-kernel-module-cheat#floating-point-in-kernel-modules
CFLAGS_REMOVE_float.o += -mno-sse -mno-sse2
endif
.PHONY: all
all: