Since it is still required to boot, I am wondering, on a x64/AMD64 64-bit system, does the BIOS still use 16-bit instructions? Also does it operate in REAL MODE?

link|improve this question

Wikipedia: "BIOS limitations (16-bit processor mode, only 1 MiB addressable space, PC AT hardware dependencies, etc.) were seen as clearly unacceptable for the newer computer platforms. Extensible Firmware Interface (EFI) is a specification which replaces the runtime interface of the legacy BIOS." – Daniel Beck Apr 27 '11 at 18:16
@Daniel Beck, I thought EFI was for Macs and the Itanium only. – unixman83 Apr 27 '11 at 18:24
@unixman83 I meant the first sentence. But you're right, in a way, since the normal vendors haven't gotten their shit together for a long time. It seems to be changing though. – Daniel Beck Apr 27 '11 at 18:37
6  
@unixman83 - Most new Intel motherboards are running on EFI since Sandy Bridge hit. AMD is likely to follow suit when Bulldozer hits. The real holdout has been that disks formatted with MFT are not bootable if they're bigger than 2TB...a limit that's just started to be commonly reached. You need EFI to boot off a GPT formatted disk (which can be much, much larger) – Shinrai Apr 27 '11 at 18:55
@unixman83: I deleted your "answer" because is not an answer, rather just a copy/paste of Shinrai's comment. – studiohack Apr 27 '11 at 21:22
show 1 more comment
feedback

1 Answer

up vote 4 down vote accepted

PCs still start out in 16bit mode. BIOSes are free (and sometimes forced) to switch to 32bit or 64bit modes while they initialize their hardware, but when they hand over control to the Operating System (or rather its bootloader), they have to revert back to 16bit mode, because that's what these loaders expect the system to be in.

coreboot and UEFI switch to 32bit mode rather early, while for PCBIOSes (phoenix/award, ami and so on), we can't tell. They're closed source and generally don't tell much about their internals, and their interfaces are all specified as 16bit.

For systems that run with ECC RAM, you can be relatively sure that they switch to some mode that's capable of addressing all RAM, so they go at least to 32bit mode - that's because they need to initialize the memory (write some value to each address) on boot or the system would halt if some later code reads addresses that were never written to (due to error detection that might produce a false positive). But as said, that's internal to the BIOS, and nothing that mere mortals can figure out easily or that they'd need to think about.

tl;dr: BIOS is in 16 bit mode at all points where it's externally visible, so for all intents and purposes it might just run in 16 bit mode all the time.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.