Linux1.0核心游记

时间:2011-07-05 14:42:07
【文件属性】:

文件名称:Linux1.0核心游记

文件大小:5.82MB

文件格式:PDF

更新时间:2011-07-05 14:42:07

Linux1.0核心游记

Linux1.0核心游记

第一部分 基础知识(Basic knowledge ).....................................................................11
软件部分(Software part)...........................................................................................12
S1.Makefile简介.....................................................................................................12
S1.1Makefile规则.........................................................................................12
S2.汇编简介 ...........................................................................................................17
S2.1 汇编优缺点............................................................................................17
S2.2 汇编语法(AT&T asm VS Intel asm).............................................18
S2.3 Hello world!示例...............................................................................20
S3.实模式向保护模式切换....................................................................................21
S3.1 切换到保护方式的准备工作.................................................................21
S3.2 使用段间指令切换进保护模式............................................................22
S3.3 打开A20 地址线切换进保护模式........................................................23
S4.gcc内嵌汇编......................................................................................................25
S4.1 内嵌汇编格式.........................................................................................25
S4.2 内嵌汇编示例.........................................................................................26
S5.GDB调试器.......................................................................................................28
S5.1 GDB命令................................................................................................29
S5.2 GDB调试样例........................................................................................29
S6.系统调用实现详解............................................................................................34
S6.1 核心中提供的宏....................................................................................34
S6.2 系统调用编号........................................................................................37
S6.3 系统调用入口点及函数表....................................................................40
S6.4 对系统调用调用....................................................................................41
硬件部分(Hardware part)..........................................................................................44
H1.操作系统的引导...............................................................................................44
H1.1 BIOS的工作...........................................................................................44
H1.2 操作系统的引导块程序.......................................................................44
H2. X86 CPU 寻址简介........................................................................................47
H2.1 实模式...................................................................................................47
H2.2 实模式方式下物理地址的形成............................................................48
H2.3 保护模式...............................................................................................49
H2.4 保护模式方式下物理地址的形成........................................................49
H3. IDT & GDT & LDT .........................................................................................51
H3.1 IDT .........................................................................................................51
H3.2 GDT & LDT ...........................................................................................52
H4.8259A可编程中断控制器................................................................................53
H4.1 8259A芯片简介.....................................................................................53
H4.2 8259A芯片对的中断处理过程.............................................................54
H4.3 8259A编程方式.....................................................................................55
H5.I/O端口及指令..................................................................................................61
H5.1I/O端口.......................................

A1.模块的编写.............................................................................................................396
A1-1 模块代码及分析..........................................................................................396
A1-2 模块的加载、注销及查看..........................................................................398
A2.系统调用的添加.....................................................................................................400
A2-1 静态添加系统调用......................................................................................400
A2-1-1 讨论Linux系统调用的体系.............................................................400
A2-1-2 修改代码来添加系统调用..............................................................405
A2-2 动态添加系统调用......................................................................................406
A2-2-1 动态添加系统调用的原理..............................................................407
A2-2-2 实现动态添加、修改系统调用......................................................408
A2-2-3 反汇编capturemod.o并分析之........................................................414
A3.函数库的编写.........................................................................................................419
A3-1 静态函数库的编写.....................................................................................419
A3-1-1 包含算法的各个文件及Makefle .....................................................420
A3-1-2 测试静态函数库的程序及Makefile ................................................422
A3-1-3 静态库编译情况..............................................................................423
A3-1-3 主程序与静态库连接......................................................................425
A3-2 动态函数库的编写.....................................................................................425
A3-2-1 动态库编译情况..............................................................................426
A3-2-2 使用动态装载器..............................................................................428
A3-3 动态/静态函数库优点 ...............................................................................429
A3-3-1 静态库优点......................................................................................429
A3-3-2 动态库优点....................................


网友评论

  • 根本打不开,骗人的。。。。。。
  • 下下来打不开,说不是标准的PDF文件