First thing that happens when you power on a system is a positive voltage (5v) is applied to the reset pin of the CPU
Two registers are initialized:
CS Register: Has the address of the stack
EIP Register: The current instruction to execute
Load the BIOS from ROM
Linux doesn’t use the BIOS after boot, it only uses device drivers loaded by the kernel
MSDOS used the BIOS to execute system calls
BIOS Steps:
POST (Power on self test)
ACPI - builds tables of devices with information regrading power. Can be used to decide when a system can power down a device or set it to a lower power level
Hardware Initialisation
3 ways to communicate with devices on a PC:
IO port from CPU to the device for communication via a port address
Map memory from the device to the address space of the computer and read/write to it
Use interrupts
Find a boot device by searching for a boot sector on each device.
First sector of a disk is the master boot record with contains the partition table and a boot loader (GRUB)