Forum FAQForum FAQ SearchSearch MemberlistMemberlist   UsergroupsUsergroups RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Wim's BIOS RSS FeedRSS Log inLog in

BIOS code execution

 
Post new topic   Reply to topic    Wim's BIOS Forum Index -> General

Recommended by Wim's BIOS...

BIOS Agent scan: Upgrade your BIOS! Driver Agent scan: Instant Access to 116,215 Device Drivers Updates!

View previous topic :: View next topic  
Author Message
sid_007
New visitors - please read the rules.


Joined: 23 Aug 2007
Posts: 8

PostPosted: Fri Sep 07, 2007 5:04 pm     Post subject: BIOS code execution Reply with quote

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
View user's profile Send private message
cp
BIOS Guru


Joined: 21 Oct 2002
Posts: 1439
Location: Germany

PostPosted: Sat Sep 08, 2007 7:27 am     Post subject: Reply with quote

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
View user's profile Send private message
sid_007
New visitors - please read the rules.


Joined: 23 Aug 2007
Posts: 8

PostPosted: Sun Sep 09, 2007 2:45 am     Post subject: Reply with quote

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
View user's profile Send private message
cp
BIOS Guru


Joined: 21 Oct 2002
Posts: 1439
Location: Germany

PostPosted: Sun Sep 09, 2007 10:56 am     Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Wim's BIOS Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group