views:

344

answers:

4

How do we shift from protected mode to real mode in Linux 2.6?

A: 

The ELKS Linux port can do real mode, but its nowhere near 2.6.

dsm
+9  A: 

You do not.

The kernel cannot function at all in real mode, nor can bios calls be (sensibly) made, so you wouldn't be able to do anything anyway.

You might look at how DosEMU uses v86 mode to run your "real mode" code, but that's all.

MarkR
+1  A: 

You could also take a look at FreeDOS if you really need real mode on the hardware.

supercheetah
+1  A: 

The kernel switches from real mode to protected mode during the very beginning of the boot/start sequence and there is no turning back. See How Boot Loaders Work for more detailed information.

If you have some program that needs real mode, there is v86 mode. Some work is ongoing to add support for this in 64 bit mode.

hlovdal