随笔分类 - Linux_kernel
摘要:1、4.9.2 引导启动程序 boot.s“...,这个引导扇区程序仅能够加载长度不好过16个扇区的head代码,...”ZC: 一个扇区的大小是多大?搜索得到:1.1、http://zhidao.baidu.com/link?url=7ryDuAfb9plVmgG_ZLn9vrJRLwCOiSx7...
阅读全文
摘要:1、32位 保护模式 段选择符 --> 段描述符(段描述符表) --> 段基地址 + 偏移量 ==> 线性地址(ZC: 这个地址就是段的开始地址)1.2、段限长字段LIMIT(Segment limit field) ... ... 。如果 G=0,则段长度...
阅读全文
摘要:1、ROM bios --> 启动盘第一个扇区(此处内容为boot) 加载到 内存位置0x7C00(31KB) --> 执行权转移(也就相当于跳转) boot程序主要功能:把 软盘/映像文件 中的 head内核代码加载到内存某个指定位置处,并在设置好临时GDT表等信息后,把处理器设置成运行在保护模...
阅读全文
摘要:1 # Makefile for the simple example kernel. 2 AS86 =as86 -0 -a 3 LD86 =ld86 -0 4 AS =gas 5 LD =gld 6 LDFLAGS =-s -x -M 7 8 all: Im...
阅读全文
摘要:1 # head.s contains the 32-bit startup code. 2 # Two L3 task multitasking. The code of tasks are in kernel area, 3 # just like the Linux. The ...
阅读全文
摘要:1 ! boot.s 2 ! 3 ! It then loads the system at 0x10000, using BIOS interrupts. Thereafter 4 ! it disables all interrupts, changes to protected mod...
阅读全文