Linux内核源代码导读方面的东西,读懂Linux内核源代码
4.1 实模式setup阶段
setup用于体系结构相关的硬件初始化工作,在arch目录中的各个系统结构的平台相关都有类似功能的代码。在32位的x86平台中,setup的入口点是arch/x86/boot/header.S中的_start。
代码片段 4.1. 节自arch/x86/boot/header.S
1 3
4 .global bootsect_start
5 bootsect_start:
6
7 # Normalize the start address
8 ljmp $BOOTSEG, $start2
9
10 start2:
11 movw %cs, %ax
12 movw %ax, %ds
13 movw %ax, %es
14 movw %ax, %ss
15 xorw %sp, %sp
16 sti
17 cld
18
19 movw $bugger_off_msg, %si
20
21 msg_loop:
22 lodsb
23 andb %al, %al
24 jz bs_die
25 movb $0xe, %ah
26 movw $7, %bx
27 int $0x10
28 jmp msg_loop
29 .......
30 .section ".bsdata", "a"
31 bugger_off_msg:
32 .ascii "Direct booting from floppy is no longer supported\r\n"
33 .ascii "Please use a boot loader program instead.\r\n"
34 .ascii "\n"
35 .ascii "Remove disk and press any key to reboot . . .\r\n" .code16 2 section ".bstext", "ax"
Linux内核源代码导读 内核源代码导读中国科学技术大学计算机系 陈香兰( 陈香兰(0551-3606864) -) xlanchen@ustc.edu.cn Spring 2009 序一些基本概念操作系统的基本...
从何处开始阅读linux内核源代码_计算机软件及应用_IT/计算机_专业资料。像Linux内核这样庞大而复杂的程序看起来确实让人望而生畏,它象一个很大的球,没有起点和终点...
暂无评价0人阅读0次下载举报文档 怎样读Linux内核源代码_信息与通信_工程科技_专业资料。怎样读Linux内核源代码Linux 内核分析方法 2010-9-12 Linux 的最大的...
暂无评价0人阅读0次下载举报文档 Linux内核源代码结构 [兼容模式]_计算机软件及应用_IT/计算机_专业资料。linux内核学习今日推荐 78...
Linux内核源代码导读中国科学技术大学计算机系 陈香兰(0551-3606864) xlanchen@ustc.edu.cn http://staff.ustc.edu.cn/~xlanchen Spring 2009 进程(任务管理) ...
Linux内核源代码(free) 66页 免费 Linux内核阅读 70页 免费 怎样读Linux内核源...(4614行)初始化一些内核数据结构,这些数据结构跟踪检测另外的CPU并简单的将其改...
Linux内核源代码导读 内核源代码导读中国科学技术大学计算机系 陈香兰( 陈香兰(0551-3606864) - ) xlanchen@ustc.edu.cn Spring 2009 进程调度调度策略 调度算法 ...
应用程序运行 序一些基本概念操作系统的基本概念 I386系统的基本概念 Linux简介 简介 源码阅读和project环境 Linux 2.6.26 源码简介 Linux简介 简介什么是Linux? ?...
Linux内核源代码(free)_计算机软件及应用_IT/计算机_专业资料。Linux内核源代码导读 (免费) 中国科学技术大学计算机系 陈香兰(0551-3606864) xlanchen@ustc.edu.cn...
热门文档