Architecture – What level of a computer system does firmware run on

Architecturebiosfirmware

In the following levels of a computer system, on which level does firmware (e.g. BIOS) run?

I guess:

  • BIOS doesn't depend on OS, so it must run on some level lower than level 3.

  • BIOS is written in machine language, so is it a program running no level 2?

Thanks.

enter image description here

Best Answer

Firmware doesn't really fit into that hierarchy. Firmware is really just a place where a library of machine code (in the sense of level 2) is stored. Often the code stored in firmware is for the management of the motherboard and IO channels, but it need not be. I've got an old Tandy laptop that has Multiplan, a text editor, a BASIC interpreter, and a calendar in firmware.