Embedded 版 (精华区)
发信人: snows (花自飘零水自流), 信区: Embedded
标 题: The setup_arch() Function
发信站: 哈工大紫丁香 (2004年03月16日13:18:57 星期二), 站内信件
The setup_arch() Function
Setup_arch() is usually located in arch/<host>/kernel/setup.c.
The setup_arch() function is responsible for initial, machine-specific
initialization procedures. These include setting up the machine vector for
the host, and determining the locations and sizes of available memory.
Setup_arch() also initializes a basic memory allocator called bootmem to use
during the boot process, and for most processors, calls paging_init() to
enable the host's Memory Management Unit (MMU).
The host's machine vector is a data structure containing the name of the
host, and function pointers for host-specific functions to read and write i/o
ports. The machine vector reduces the number of configuration points in the
kernel, by allowing host-specific operations in generic kernel code to use a
common API.
--
-
╭────────────────────────────╮
│ 风萧传瑟声,叶落根深处,青阶入野无归途,他乡不知顾 │
│ 泣下问和谁,叹者行已暮,寒眉傲骨今尚在,奈何入凡土 │
╰────────────────────────────╯
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.229.154]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:6.181毫秒