| View previous topic :: View next topic |
| Author |
Message |
sid_007 New visitors - please read the rules.
Joined: 23 Aug 2007 Posts: 8
|
Posted: Fri Sep 07, 2007 5:04 pm
Post subject: BIOS code execution |
|
|
Hi,
When the processor starts the bootstrap procedure reading from the BIOS, does the code from the BIOS flow through the memory hierarchy, that is, the main memory (DRAM), and caches, or the processor has an ability to read instructions directly from the ROM, if so how ?
Thanks in advance
|
|
| Back to top |
|
 |
|
|
cp BIOS Guru

Joined: 21 Oct 2002 Posts: 1439 Location: Germany
|
Posted: Sat Sep 08, 2007 7:27 am
Post subject: |
|
|
the processor reads the first instructions directly from the rom. this is nothing special since the rom consists of addresses and data, too. the only difference between ram and bios is that no values can be saved in the bios address area. after the first few instructions which initialize the chipset and thus the ram, the bios is decrunched to main memory.
on startup the only memory hierarchy are the processor registers (maybe L1 caches) and the bios eprom.
|
|
| Back to top |
|
 |
sid_007 New visitors - please read the rules.
Joined: 23 Aug 2007 Posts: 8
|
Posted: Sun Sep 09, 2007 2:45 am
Post subject: |
|
|
| Thanks for the reply, does the copying of BIOS to DRAM happen always or only when the ROM shadowing option is turned ON. Thanks again
|
|
| Back to top |
|
 |
cp BIOS Guru

Joined: 21 Oct 2002 Posts: 1439 Location: Germany
|
Posted: Sun Sep 09, 2007 10:56 am
Post subject: |
|
|
since most - if not all - mainboard bios use compressed code, they have to be decrunched to memory. otherwise execution wouldn't be possible. this is the reason why compressed bioses will automaticaly be shadowed.
but if you load a modern OS (Linux, Windows NT/2K/XP/VISTA), the bios doesn't play any role at all because none of those OS uses bios calls or uses any data provided by the bios (except some acpi stuff maybe).
|
|
| Back to top |
|
 |
|