“__aeabi_ldivmod” undefined when compiling kernel module

后端 未结 1 1306
小鲜肉
小鲜肉 2021-01-12 08:09

I\'m trying to compile a kernel module (which I wrote myself) on a raspberry pi. I am compiling it in the target environment.

I get the following output:

<         


        
相关标签:
1条回答
  • 2021-01-12 08:52

    On most 32-bit CPUs, 64-bit division must be implemented with a slow library function. To prevent the compiler from generating unobviously slow code, Linux does not implement these functions.

    If you want to do 64-bit divisions, you have to do them explicitly. Use do_div() from <asm/div64.h>.

    0 讨论(0)
提交回复
热议问题