News for hackers. Stuff that matters.
Re:Booting Modern Intel CPUs by voxadam on Monday April 17, 2023 @08:44AM (#35599851)
What's the actual reason for real mode still being supported on modern processors in this day in age? Why didn't it die with the advent of AMD64 (aka x86-64)? Why didn't AMD skip real mode and boot directly into something more modern?
Re:Booting Modern Intel CPUs by pwg on Monday April 17, 2023 @10:09AM (#35600925)
Most likely because for protected mode to function, there is a certain minimal amount of housekeeping data tables that need to be setup properly (i.e. LDT, GDT, IDT, etc), otherwise you'll just immediately take a double fault and the CPU will halt.

Real mode exists today as a gateway to setting up all those housekeeping data tables so that once the "protected mode" switch is flipped on, the CPU will actually find code to execute.

Re:Booting Modern Intel CPUs by gpderetta on Monday April 17, 2023 @10:51AM (#35601629)
- There is likely very little to no cost in keeping it in

- There might be even a cost in removing it.

- Complexity is a barrier to entry to any competitor that want to produce compatible CPUs.

Re:Booting Modern Intel CPUs by toast0 on Monday April 17, 2023 @11:02AM (#35601847)
When AMD64 came out, bios booting was dominant. You need real mode for that.

In today's world, you could probably release an UEFI only cpu and few would notice. But I doubt it would save enough space to make a difference. And you'd open yourself to criticism from those few that still use real mode: this processor is fake, they'd say, because it has no real mode.

Re:Booting Modern Intel CPUs by sgjohnson on Monday April 17, 2023 @12:49PM (#35603337)
> this processor is fake, they'd say, because it has no real mode.

They could also claim that it’s not PC compatible. Because it literally wouldn’t be.

Apple also achieved their dream of the Mac no longer being a PC with the release of M1.