Update Booting/linux-bootstrap-2.md

This commit is contained in:
hailin cai
2016-02-24 11:02:11 -05:00
parent b56bea605f
commit a3888d5dd2

View File

@@ -382,7 +382,7 @@ if (cpu_level < req_level) {
内存侦测
--------------------------------------------------------------------------------
接下来,内核调用`detect_memory`方法进行内存侦测,以得到系统当前内存的使用分布。该方法用多种编程接口,包括`0xe820``0xe801``0x88`,进行内存侦测。在这里我们只介绍[arch/x86/boot/memory.c](https://github.com/torvalds/linux/blob/master/arch/x86/boot/memory.c)中提供的`detect_memory_e820`方法。
接下来,内核调用`detect_memory`方法进行内存侦测,以得到系统当前内存的使用分布。该方法使用多种编程接口,包括`0xe820``0xe801``0x88`,进行内存侦测。在这里我们只介绍[arch/x86/boot/memory.c](https://github.com/torvalds/linux/blob/master/arch/x86/boot/memory.c)中提供的`detect_memory_e820`方法。
该方法首先调用`initregs`方法初始化`biosregs`数据结构,然后向该数据结构填入`0xe820`编程接口所要求的参数: