This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

arm内核态做浮点运算



为了能在内核态做浮点运算

先在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

请教该如何修正?