Chinaunix首页 | 论坛 | 博客
  • 博客访问: 197993
  • 博文数量: 68
  • 博客积分: 529
  • 博客等级: 中士
  • 技术积分: 721
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-10 16:38
文章分类

全部博文(68)

文章存档

2014年(2)

2013年(4)

2012年(16)

2011年(34)

2010年(4)

2009年(8)

分类: LINUX

2011-08-24 16:45:27

在文件vmalloc.h (in   mach-omap2) 定义了
#define VMALLOC_END  (PAGE_OFFSET + 0x38000000)

static unsigned long __initdata vmalloc_reserve = SZ_128M;
#define SZ_128M                         0x08000000

so VMALLOC_MIN should be 0xC0000000 + 0x38000000- 0x08000000= 0xf0000000

so 0xf0000000 - 0xc0000000 = 0x30000000 = 768M

but omap4 mem = 512 + 456 = 968M

omap4 物理内存配置:
mem=456M@0x80000000 mem=512M@0xA0000000

在文件memory.h (in plat-omap) 
#define PHYS_OFFSET UL(0x80000000)

#define __virt_to_phys(x) ((x) - PAGE_OFFSET + PHYS_OFFSET)
#define __phys_to_virt(x) ((x) - PHYS_OFFSET + PAGE_OFFSET)

#define VMALLOC_MIN (void *)(VMALLOC_END - vmalloc_reserve)
 
阅读(721) | 评论(0) | 转发(0) |
0

上一篇:omap4430 ddr

下一篇:oma4430 power management

给主人留下些什么吧!~~