摘要: MachHwDetect调用,它其实是个宏,对应i386,它对应着PcHwDetect。 SystemKey = DetectSystem(); /* Detect buses */ DetectPciBios(SystemKey, &BusNumber); DetectApmBios(SystemKey, &BusNumber); DetectPnpBios(SystemKey, &BusNumber); DetectIsaBios(SystemKey, &BusNumber); DetectAcpiBios(SystemKey, &BusNumber 阅读全文
posted @ 2011-03-16 15:15 Fan Zhang 阅读(1401) 评论(0) 推荐(0)
摘要: 建立全局PAGE_LOOKUP_TABLE_ITEM类型的数组PageLookupTableAddress,元素个数是TotalPageCount(总共可用页数)。 然后调用MmInitPageLookupTable函数初始化PageLookupTableAddress,并且标记每个元素记录的类型是什么。 MmInitializeHeap初始化Heap 阅读全文
posted @ 2011-03-16 15:05 Fan Zhang 阅读(185) 评论(0) 推荐(0)
摘要: MmInitializeMemoryManager函数是BootMain函数中很重要的一步。 MmInitializeMemoryManager的前面会打印出一段log,代码如下。 #if DBG // Dump the system memory map DPRINTM(DPRINT_MEMORY, "System Memory Map (Base Address, Length, Type):... 阅读全文
posted @ 2011-03-16 11:51 Fan Zhang 阅读(266) 评论(0) 推荐(0)