Booting Peter J

Booting Peter J

Booting Peter J. Denning © 2019, Peter J. Denning Starting the system • The process of starting the OS after the computer’s power has been turned on is call “bootstrapping” or “booting” for short • The term reflects the structure of the startup process, which was likened to “lifting oneself up by one’s boot straps” © 2019, Peter J. Denning Starting the system - 2 • When power is off, the main memory is empty • Objective: load the file “kernel.exe” from the disk and jump to its first instruction • But the read-file operation is not yet available because the kernel is not yet loaded • How to do this? © 2019, Peter J. Denning Starting the system - 3 • The load takes place in stages: • Stage 1: Start executing the BIOS code. BIOS code requests the disk to load the code in Master Boot Record (MBR), the first record on the disk. When done, jump to the first address of the MBR code. • Stage 2: MBR code contains the disk start address of kernel.exe. It issues commands to load that file into memory. When done, jump to the first address of that code. • Stage 3: Kernel does its own internal initialization, including creating a login process attached to the keyboard and display. • Example on next page © 2019, Peter J. Denning 1: BIOS firmware permanently RAM resides at Mem[0..8]. Mem[9] is 0 1 BIOS a flag set by tHe disk to indicate BIOS firmware that it is “transferrinG” or “idle”. 9 Start BIOS by settinG IP to 0. 10 idle BIOS code requests disk to load MBR into memory startinG at MBR 2 Mem[10]. CPU loops on Mem[9] until tHe flaG says “idle”. 137 master Jump to Mem[10]. boot record 2: MBR code requests disk to load file “kernel.exe” startinG 3 kernel at Mem[138]. Loop on Mem[9] until tHe flaG says “idle”. Jump to Mem[138]. kernel.exe 3: Kernel codes starts internal initialization and confiGurinG a loGin process user attacHed to tHe keyboard and display. © 2019, Peter J. DenninG.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    5 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us