标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
CPU Cache技术学习笔记 | 907 | 0 | 0 | 2011-03-29 | |
Cache 的write back和write through | 1097 | 0 | 0 | 2011-03-29 | |
ppp拨号脚本配置(zz) | 3297 | 0 | 2 | 2011-03-29 | |
移植rp-pppoe到s3c2440(QQ2440v3)实现ADSL拨号上网 | 963 | 0 | 0 | 2011-03-29 | |
linux2.6内核ppp分析 | 902 | 0 | 0 | 2011-03-29 | |
Linux PPP 数据收发流程 | 710 | 0 | 0 | 2011-03-29 | |
linux 内核编码格式 | 989 | 0 | 0 | 2011-03-18 | |
skb copy | 968 | 0 | 0 | 2011-03-17 | |
sk_buff详解 | 746 | 0 | 0 | 2011-03-17 | |
什么是EABI? | 1030 | 0 | 0 | 2011-03-15 | |
metadata in filesystem | 772 | 0 | 0 | 2011-03-14 | |
yaffs2 分析(原) | 2328 | 0 | 0 | 2011-03-10 | |
Google Objective-C Style Guide | 1000 | 0 | 0 | 2011-03-08 | |
OpenWrt source repository downloads | 2031 | 0 | 0 | 2011-03-07 | |
最近最久未使用(LRU)置换算法 | 6486 | 0 | 0 | 2011-03-06 | |
VBS、S-Video、YPbPr、模拟RGB、DVI和HDMI | 5178 | 0 | 0 | 2011-03-06 | |
谈谈RGB、YUY2、YUYV、YVYU、UYVY、AYUV | 1262 | 0 | 1 | 2011-03-06 | |
H.264, MPEG4, AVC, MPEG part2, MPEG4 part 10的区别与联系 | 5055 | 0 | 0 | 2011-03-06 | |
【转】 FFMpeg对MPEG2 TS流解码的流程分析 | 1808 | 0 | 0 | 2011-03-06 | |
DVB中的业务信息(SI)--1 | 915 | 0 | 0 | 2011-03-06 |
redglass2008-09-10 13:12
我做2440系统的移植的时候发现这样的问题 在一开始进行到setup_processor这个函数的时候(arch/arm/kernel/setup.c)跟踪看了一下list = lookup_processor_type();得到的指针是null,跟踪进去看汇编,就是head.s中的那个__lookup_processor_type函数,代码如下,其中把各个寄存器的值都打出来了,看了都没什么问题,在1:后答应看到的r3,r4,r9都能和arch/arm/mm/proc-arm920.s对应上(后面有代码),应该能正常的到2:,但是怎么在c里面的那个语句获得不到该得到的值呢?请知道的话帮我解释一下吧。谢谢了 __lookup_processor_type: adr r3, 3f ldmda r3, {r5, r6, r9} sub r3, r3, r9 @ get offset between virt&phys add r5, r5, r3 @ convert virt addresses to add r6, r6, r3 @ physical address space mrc p15, 0, r9, c0, c0 @ get processor id 1: ldmia r5, {r3, r4} @ value, mask and r4, r4, r9 @ mask wanted bits teq r3, r4 beq 2f add r5, r5, #PROC_INFO_SZ @ sizeof(proc_info_list) cmp r5, r6 blo 1b mov r5, #0 @ unknown processor 2: mov pc, lr __arm920_proc_info: .long 0x41009200 .long 0xff00fff0 .long PMD_TYPE_SECT | \ PMD_SECT_BUFFERABLE | \ PMD_SECT_CACHEABLE | \ PMD_BIT4 | \ PMD_SECT_AP_WRITE | \ PMD_SECT_AP_READ b __arm920_setup .long cpu_arch_name .long cpu_elf_name .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB .long cpu_arm920_name .long arm920_processor_functions .long v4wbi_tlb_fns .long v4wb_user_fns #ifndef CONFIG_CPU_DCACHE_WRITETHROUGH .long arm920_cache_fns #else .long v4wt_cache_fns #endif .size __arm920_proc_info, . - __arm920_proc_info