Embedded 版 (精华区)
发信人: snows (花自飘零水自流), 信区: Embedded
标 题: The console_init() Function
发信站: 哈工大紫丁香 (2004年03月16日13:21:39 星期二), 站内信件
The console_init() Function
Console_init() is located in drivers/char/tty_io.c.
The console_init() function performs early initialization of the kernel's
serial console device, if one is configured for use. This console device is
used to display kernel boot messages before the formal, complete virtual
console system is initialized.
Once some basic TTY information is recorded, console_init() calls a
host-specific console initialization function like sci_console_init(), which
uses the Hitachi SH's SCI peripheral as a serial console.
In most cases, the kernel's console device is the host's VGA display
hardware, or a serial port. By creating your own terminal initialization
function for console_init(), however, just about any primitive interface is
possible. Consoles that talk to network hosts can't be used here, since the
kernel's networking subsystem has not yet been initialized.
--
-
╭────────────────────────────╮
│ 风萧传瑟声,叶落根深处,青阶入野无归途,他乡不知顾 │
│ 泣下问和谁,叹者行已暮,寒眉傲骨今尚在,奈何入凡土 │
╰────────────────────────────╯
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.229.154]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.048毫秒