|
为了能在内核态做浮点运算
先在Makefile添加
EXTRA_CFLAGS += -Wall -O0 -mfpu=neon -mfloat-abi=softfp -I. -lm -lrt
再把涉及浮点运算的代码用kernel_neon_begin/end括起来
但在编译时报错
drvmain.c:95:5: error: call to '__compiletime_assert_95' declared with attribute error: kernel_neon_begin() called from NEON code
请教该如何修正?
|
|