1.确定processortypearch/arm/kernel/head.S中:00075:mrcp15,0,r9,c0,c0@getprocessorid00076:bl__lookup_proc
2.确定machinetypearch/arm/kernel/head.S中:00079:bl__lookup_machine_type@r5=machinfo00080:movsr8,r5@inva
6.切换数据在arch/arm/kernel/head-common.S中:00014:.type__switch_data,%object00015:__switch_data:00016:.lon
驱动程序#includelinux/module.h>#includelinux/kernel.h>#includelinux/moduleparam.h>#includelinux