1 / 5

操作系统的硬件环境

操作系统的硬件环境. 操作系统运行的硬件环境组成 中央处理器( CPU ) 存储系统 中断机制 I/O 系统 时钟以及时钟队列. 2. 1. 3. 13. 6. 9. 12. 7. 8. 11. 5. 4. 10. 电源. CPU. SRT. 主存. NVR. BIOS. PCI 总线. PnP. 非 PnP. 外存. 扩充设备. I/O 设备. 程序状态字 PSW. 在 PSW 中专门设置一位,根据运行程序使用指令的权限而设置, PSW (Program Status Word ) :

callia
Download Presentation

操作系统的硬件环境

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 操作系统的硬件环境 操作系统运行的硬件环境组成 • 中央处理器(CPU) • 存储系统 • 中断机制 • I/O系统 • 时钟以及时钟队列

  2. 2 1 3 13 6 9 12 7 8 11 5 4 10 电源 CPU SRT 主存 NVR BIOS PCI总线 PnP 非PnP 外存 扩充设备 I/O设备

  3. 程序状态字PSW 在PSW中专门设置一位,根据运行程序使用指令的权限而设置,PSW (Program Status Word ): • CPU的工作状态码——指明管态还是目态,用来说明当前在CPU上执行的是操作系统还是一般用户,从而决定其是否可以使用特权指令或拥有其它的特殊权力 • 条件码——反映指令执行后的结果特征 • 中断屏蔽码——指出是否允许中断

  4. 例:微处理器M68000的程序状态字 条件位: C: 进位标志位 V: 溢出标志位 Z: 结果为零标志位 N: 结果为负标志位 I0 – I2:三位中断屏蔽位 S:CPU状态标志位,为1处于管态,为0处于目态 T:陷阱(Trap)中断指示位为1, 在下一条指令执行后引起自陷中断

  5. CPU状态的转换 目态--管态 其转换的唯一途径是通过中断 管态--目态 可用设置PSW(修改程序状态字)可实现

More Related