3 ms·
Being fast is hardly a marketing feature. X86 had gates, segment tables and rings (still fully functional in 32 bit mode, so having them is not an hindrance on
by gpderetta 6y ago
Being fast is hardly a marketing feature. X86 had gates, segment tables and rings (still fully functional in 32 bit mode, so having them is not an hindrance on being fast). They got dropped in 64 bit mode because no software has used them in 25 years.
- corty 6y agoHaving them wasn't a hindrance, luckily for intel. But using them to the full extent was far slower than not. E.g. call gates as a syscall mechanism have a far higher overhead compared to int80. Segments, when used in the intended finer-than-page granularity are also too slow, because changing a segment register often is very costly in terms of cache and TLB flush. That's why everyone just used a few fixed segments that almost never changed and did the interesting stuff with page-based memory management.
- rbanffy 6y ago> They got dropped in 64 bit mode because no software has used them in 25 years. I think there was one that used them, but i can't remember its name. Maybe someone here can help. It was obscure enough that Intel didn't think too much about removing them.
- gpderetta 6y agoIIRC Segments were used to speed up (para?) virtualization, before built-in support in the ISA. Segment registers are also used as thread pointer, but that special case is still supported even in 64 bit mode.
- rbanffy 6y agoI was talking about the rings. I remember something that used them.