| | | | 1 | 2 | 3 | 4 | | 5 | 6 | 7 | 8 | 9 | 10 | 11 | | 12 | 13 | 14 | 15 | 16 | 17 | 18 | | 19 | 20 | 21 | 22 | 23 | 24 | 25 | | 26 | 27 | 28 | 29 | 30 | 31 | |
|
|
kernel的入口地址是/sys/i386/i386/locore.s中定义的btext:200/**********************************************************************201*202* This is where the bootblocks start us, set the ball rolling...203*204*/205NON_GPROF_ENTRY(btext)从/boot/kernel/kernel中可以 ...
init386之前的地址空间和页表结构是在/sys/i386/i386/locore.s中建立的。相关过程的分析笔记参见http://bbs.chinaunix.net/thread-1254867-1-1.html。页表相关宏值定义的含义参见http://bbs.chinaunix.net/thread-1254863-1-1.html。
/sys/i386/include/pmap.h中定义的宏值:94/*95* Size of Kernel address space.This is the number of page table pages96* (4MB each) to use for the kernel.256 pages == 1 Gigabyte.97* This **MUST** be a multiple of 4 (eg: 252, 256, 260, etc).98*/99#ifndef KVA_P ...
 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/9831/showart_1149556.html
kernel的入口地址是/sys/i386/i386/locore.s中定义的btext:
200/**********************************************************************
201*
202* This is where the bootblocks start us, set the ball rolling...
203*
204*/
205NON_GPROF_ENTRY(btext)
从/boot/kernel/kernel中可以读出btext的 ...
|
|