2 ms·
On a 64-bit architecture its 64-bit. 32-bit programs run there. Also, as noted elsewhere, on 32-bit architectures there's segment swapping too. In fact I wrote
by JoeAltmaier 15y ago
On a 64-bit architecture its 64-bit. 32-bit programs run there.
Also, as noted elsewhere, on 32-bit architectures there's segment swapping too. In fact I wrote an OS that segment swapped before the 386 came out, when the 286 was king. Probably the only one out there; a pretty crazy notion and the 386 came out a year later with paging.
- caf 15y agoEven in 64-bit mode the base address for code and data segments remains 32 bits - it is only expanded to 64 bits for call gate descriptors, IDT gate descriptors, LDT descriptors and TSS descriptors. The base address for the FS and GS selectors can be set to a 64 bit value, but the upper 32 bits are ignored in compatibility mode (ie when a 32 bit task is running). The point about being able to implement segment-swapping is well-taken however.