flat assembler
Message board for the users of flat assembler.
Index
> Main > bios update |
Author |
|
ouadji 08 Mar 2010, 21:06
Quote:
The first bios opcode is at this address. (real mode) First opcode ... the concept of mapping does not exist yet. (only linear physical address) To access the mapping feature (page table-cr3) , the processor must first go into protected mode (cr0) RAM is placed at the bottom of the address space because the initial DS after reset is 0. Quote:
b) yes, obviously. |
|||
08 Mar 2010, 21:06 |
|
a115433 08 Mar 2010, 21:46
To access the mapping feature (page table-cr3) ,
mapping as in mapping hardware to linear address space, and mapping hardware to port io address space. i though eeprom is read only, and can be written only by special radiation or something. how bios update is performed then? is it reversable? is it safe to do that on real machine? |
|||
08 Mar 2010, 21:46 |
|
LocoDelAssembly 08 Mar 2010, 22:05
I think it might be interesting for you this site: http://sites.google.com/site/pinczakko/home
About the mapping, I think there is some misunderstanding here, mapping memory with page tables is not a mandatory way to access hardware, its only purpose would be simply to add ab address translation layer to get the linear address. The hardware already listen to some memory address ranges, some other hardware requires previous programming to start listening (PCI devs for instance), but in any case, the processor is completely ignorant about that fact*, it simple read/write to a given memory address and it is the responsibility of the supporting hardware to route the operation. *AMD64 includes a memory controller and I think Intel started to do the same, but in any case it has nothing to do with CR3 nor CR0. PS: Forgot to tell, updating BIOS is not as simple as writing to F0000-FFFFF memory range (which is also insufficient by the current BIOS sizes), motherboard specific procedures has to be taken to write to the EEPROM memory. But, as you can see in the site's references, you can still do custom updates by using the utilities provided for your motherboard. |
|||
08 Mar 2010, 22:05 |
|
ouadji 08 Mar 2010, 22:10
The mapping does not exist before protected mode. Before the protected mode, exist only linear physical addressing. Before the protected mode, the concept of mapping has no meaning First access to hardware is done in real mode and physical addressing. The BIOS knows the physical address of the basic hardware components. (don't forget that bios is manufactured by the manufacturer of the motherboard) Quote:
there is always a risk. Updating the bios is not without risk. If it fails, then the machine has no bios, and is unusable. If there are no problems, it's not necessary to update the BIOS. Don't do it just for fun. |
|||
08 Mar 2010, 22:10 |
|
LocoDelAssembly 08 Mar 2010, 22:29
Quote: Before the protected mode, the concept of mapping has no meaning BIOS and Kernel Developer's Guide for AMD AthlonTM 64 and AMD OpteronTM Processors wrote: 3.4.5 Memory-Mapped I/O Address Map Registers |
|||
08 Mar 2010, 22:29 |
|
ouadji 08 Mar 2010, 22:45
From CPU perspective ... the "mapping" from hardware perspective ... I was talking more from OS perspective. To me, this is not the real meaning of this word, but hey, I agree. But I keep what I said, more in line, I think, with the true concept of mapping. |
|||
08 Mar 2010, 22:45 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.