in linux kernel, asm or asm-generic?

 ̄綄美尐妖づ 提交于 2021-01-26 22:46:12

问题


in mm/memory.c, it includes one file:

#include <asm/tlb.h>

the tlb.h is include/asm-generic/tlb.h or arch/arm/include/asm/tlb.h?


回答1:


If necessary, header files in arch/arm/include/asm, will include the corresponding header file in include/asm-generic.

So in this instance, tlb.h is arch/arm/include/asm/tlb.h. And if necessary, it will include include/asm-generic/tlb.h.

You can verify this by running the following command:

# The memory.s target creates the assembly file for memory.c
make mm/memory.s

From that, you can identify which header file is being used.



来源:https://stackoverflow.com/questions/13109396/in-linux-kernel-asm-or-asm-generic

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