News for hackers. Stuff that matters.
Re:Booting Modern Intel CPUs by rwmj on Monday April 17, 2023 @04:59AM (#35598300)
Intel actually released a variant of the 80386 which booted into protected mode and lacked real mode entirely. It was as far as I know not very successsful: https://en.wikipedia.org/wiki/Intel_80376
Re:Booting Modern Intel CPUs by mjg59 on Monday April 17, 2023 @05:11AM (#35598381)
Simultaneously lacking real mode and paging support did kind of restrict it to embedded use cases
Re:Booting Modern Intel CPUs by senko on Monday April 17, 2023 @08:10AM (#35599562)
In 1989, people very much used real mode, so it's not surprising this failed. (also, it was for embedded systems only according to that Wikipedia article)

In 2023, not so much.

It's baffling to me this is still supported, when all the other changes in the hardware basically make it impossible to run anything that old on the modern hardware (you can do that in QEMU, but you can then emulate x86 in software fast enough anyway).

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.

Re:Booting Modern Intel CPUs by kevin_thibedeau on Monday April 17, 2023 @08:58AM (#35599971)
I boot FreeDOS on a Ryzen system so I can use a parallel port device whose program won't work correctly under 64-bit Dosemu2. it is an EPROM programmer whose timing requirements won't tolerate non-virtualized emulation.
Re:Booting Modern Intel CPUs by senko on Monday April 17, 2023 @09:56AM (#35600743)
Thanks for providing an actual and relevant use case.

TBH (and I'm wildly speculating here, I'm not involved in embedded dev at all), if there were no other options, I believe the SW emulation would rise to the challenge to make it workable.

If people can faithfully reproduce behaviours of ages old consoles to make sure the old games' bugs are still preserved, and for free, I'm guessing someone would step up in case of x86 if there was a business need.

But since you can still use actual HW to do that, there isn't any.