Embedded 版 (精华区)
发信人: snows (花自飘零水自流), 信区: Embedded
标 题: The start_kernel() Function
发信站: 哈工大紫丁香 (2004年03月16日13:18:29 星期二), 站内信件
he start_kernel() Function
Start_kernel() is located in kernel/init/main.c.
The start_kernel() function orchestrates all of Linux's startup procedure.
Prior to invoking all the other functions needed to get the kernel into an
operational state, start_kernel() prints the familiar Linux startup banner
and parses the command line.
The following sections describe each of the functions called by
start_kernel(), in the order of their invocation. The code in Figure 5 shows
the first few lines of start_kernel().
asmlinkage void __init start_kernel(void)
{
char * command_line;
unsigned long mempages;
extern char saved_command_line[];
lock_kernel();
printk(linux_banner);
setup_arch(&command_line);
printk("Kernel command line: %s\n", saved_command_line);
parse_options(command_line);
trap_init();
init_IRQ();
...
Figure 5. The start_kernel() function.
--
-
╭────────────────────────────╮
│ 风萧传瑟声,叶落根深处,青阶入野无归途,他乡不知顾 │
│ 泣下问和谁,叹者行已暮,寒眉傲骨今尚在,奈何入凡土 │
╰────────────────────────────╯
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.229.154]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:4.184毫秒