|
有定义说,
28 struct e820map {
29 int nr_map;
30 struct e820entry {
31 unsigned long long addr; /* start of memory segment */
32 unsigned long long size; /* size of memory segment */
33 unsigned long type; /* type of memory segment */
34 } map[E820MAX];
35 };
36
37 extern struct e820map e820;
不太清楚nr_map是什么作用,
启动后,初始化max_pfn,max_low_pfn的是哪个文件的哪个函数?
/* RAM? */
if (e820.map.type != E820_RAM)
continue;
这段代码中e820.map不理解啊,
(我刚开始慢慢的看内核,第一次发问提,大家多提示下,) |
|