摘要:
CONFIG_MV_INTERNAL_REGS_SELECTIVE_MAPPING=y 选择映射内部寄存器(分散开,每个64K),否则映射1M寄存器空间 sysmap.c文件 #if defined(CONFIG_MV_INTERNAL_REGS_SELECTIVE_MAPPING) /* need to make sure it is big enough to hold all mapping... 阅读全文
posted @ 2011-06-17 23:22
katago
阅读(444)
评论(0)
推荐(0)
摘要:
Virtual Memory I: the problem http://en.wikipedia.org/wiki/High_memory http://lwn.net/Articles/75174/ [Posted March 10, 2004 by corbet] This article serves mostly as background to help understand why ... 阅读全文
posted @ 2011-06-17 17:36
katago
阅读(245)
评论(0)
推荐(0)
摘要:
原先一直都对Linux高端内存的管理认识模模糊糊的,可能主要是初次接触Linux kernel 是0.11版吧,当初的内存设计是16M,Linus对拥有32M的内存都是觊觎万分,1G内存恐怕是天方夜谭了。16M内存哪里还顾得上高端内存,脑子就一直没有这种概念。先我们还是来看看为什么要有高端内存? 80386的线性寻址空间是4G,内核空间从3G开始,如果全部采用"线性映射"(物理地址和逻辑地址只差一... 阅读全文
posted @ 2011-06-17 17:01
katago
阅读(895)
评论(0)
推荐(0)
摘要:
Linux内核访问外设I/O资源的方式 Author: Dongas Date: 08-08-02 我们知道默认外设I/O资源是不在Linux内核空间中的(如sram或硬件接口寄存器等),若需要访问该外设I/O资源,必须先将其地址映射到内核空间中来,然后才能在内核空间中访问它。 Linux内核访问外设I/O内存资源的方式有两种:动态映射(ioremap)和静态映射(map_desc)。 ... 阅读全文
posted @ 2011-06-17 16:06
katago
阅读(1558)
评论(0)
推荐(0)
摘要:
__init和__initdata Linux在arch/$(ARCH)/kernel/vmlinux.lds中定义了.init段。__init和__initdata属性的数据都在这个段中,当内核启动完毕后,这个段中的内存会被释放掉供其他使用。 __init和__initdata宏定义如下: /* include/linux/init.c */ #define __init __attrib... 阅读全文
posted @ 2011-06-17 16:03
katago
阅读(1761)
评论(0)
推荐(1)
摘要:
http://www.cublog.cn/u2/60011/showart_1010489.html MACHINE_START宏 linux2.6.18内核,在Mach-s3c2410.c文件中,有如下的宏定义: MACHINE_START(SMDK2410, "SMDK2410") /* @TODO: request a new identifier and switch to SMDK241... 阅读全文
posted @ 2011-06-17 16:00
katago
阅读(772)
评论(0)
推荐(0)
摘要:
About TEXTADDR, ZTEXTADDR, PAGE_OFFSET etc Initial definitions ------------------- The following symbol definitions rely on you knowing the translation that __virt_to_phys() does for your machine. Th... 阅读全文
posted @ 2011-06-17 15:54
katago
阅读(350)
评论(0)
推荐(0)
摘要:
Vmalloc可以获得的地址在VMALLOC_START到VMALLOC_END的范围中。这两个符号在<asm/pgtable.h>中定义: * arch/arm/include/asm/pgtable.h /* * Just any arbitrary offset to the start of the vmalloc VM area: the * current 8MB value just... 阅读全文
posted @ 2011-06-17 15:53
katago
阅读(3013)
评论(1)
推荐(0)
摘要:
http://partner.atheros.com/Drivers.aspx 下载AR81Family Linux Driver 阅读全文
posted @ 2011-06-17 15:42
katago
阅读(252)
评论(0)
推荐(0)