“__aeabi_ldivmod” undefined when compiling kernel module

ⅰ亾dé卋堺 提交于 2019-12-01 16:19:20

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>.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!