#ifdef RAMDISK//If a virtual disk is defined, the main memory will be reduced.
124 Main_memory_start + = Rd_init (Main_memory_start, ramdisk*1024);
#endif
The following is the initialization of all aspects of the kernel. It is best to follow the procedure of the call to go into the reading, actually look at
No, let's just put it on the next initialization call--This is the experience of experience?
126 Mem_init (main_memory_start,memory_end);
127 trap_init (); Trap Gate (Hardware interrupt vector) initialization. (kernel/traps.c,181 line)
Blk_dev_init (); Block device initialization. (kernel/blk_dev/ll_rw_blk.c,157 line)
129 Chr_dev_init (); Character device initialization. (kernel/chr_dev/tty_io.c,347 line)
Tty_init (); TTY initialization. (kernel/chr_dev/tty_io.c,105 line)
131 Time_init (); Set boot time
Linux kernel Learning-3 main function (Follow Sina Weibo: Lonely Years of erosion (more than 4,000 technology sharing))