BootingAssemblyLinux-0.11OS InterfaceTrap/InterruptMultiple ProcessesCPU SchedulingProcesses Synchronization and SemaphoreCritical SectionDeadlockMemory and SegmentationMemory Partition and PagingMultilevel PagingSegmentation & PagingSwap inSwap outI/O & DisplayKeyboardRaw DisksCooked DisksFiles ImplementationFile SystemDirectory Resolution
冯诺依曼存储程序思想
将程序和数据存放到计算机内部的存储器中,计算机在程序的控制下一步一步进行处理
即——取指执行
开机时
(对于x86结构)
- 刚开机时CPU处于实模式。
CS=0xFFFF;IP=0x0000。(CS段寄存器,IP段内偏移)
实模式的寻址CS:IP(CS左移4位+IP),和保护模式不同
- 寻址0xFFFF0(ROM BIOS映射区)
- 检查RAM,键盘,显示器,软硬磁盘
- 将磁盘0磁道0扇区(即引导扇区)读入0x7c00处。(1扇区=512字节)
- 设置CS=0x07c0,IP=0x0000,跳到7c00处开始执行引导
引导
内存
操作系统启动时将自己加载到内存0地址处,然后初始化GDT、IDT等数据结构并依次放在系统代码之上;启动后用户使用的应用程序会被放在内存的上段