> I am working on a project where I would like to be able to load up a > minimum linux kernel with a small ramdisk similer to what is used for > install puposes. But I need to be able to shutdown linux and return > back to dos without rebooting. Is this possible, practical or remotely > doable?> Kenny Thomas > ADMINKT@flint.umich.edu >

``BACK to DOS?'' Unless you use ``jboot'', a DOS program I wrote severalyears ago, you do not start at DOS, so regardless of what you do, youcan't get ``back''. Jboot only works with zImage, not bzImage, so youare limited here.

Further, in MS-DOS, if you have a memory manager installed, it willprevent you from entering protected mode (you are really in Virtual86 mode and the memory manager is in protected mode), unless youplay some tricks which really mess up the MS-DOS environment so,even if you ``got back'' the system would not work properly.

That said, it IS possible to get back from protected mode to real-mode.You can even restore the whole 16-bit environment (IDTs, GDTs, etc),if you saved them somewhere. The problem is that Linux may have usedyour secret memory location(s) for something else, and the state ofthe hardware in undefined. To reinitialize the hardware, you've gotto either let the BIOS do it (cold boot), or do it all yourself fromsome launch/restore program.

If you are interested, I can send you some code that starts atMS-DOS, hoists itself into 32-bit protected mode, executes some 32-bitbenchmark code, then returns to 16-bit mode (and MS-DOS) withouthurting anything. Contact me off-the-list.

Cheers,Dick Johnson ***** FILE SYSTEM WAS MODIFIED *****Penguin : Linux version 2.1.131 on an i686 machine (400.59 BogoMips).Warning : It's hard to remain at the trailing edge of technology.

-To unsubscribe from this list: send the line "unsubscribe linux-kernel" inthe body of a message to majordomo@vger.rutgers.eduPlease read the FAQ at http://www.tux.org/lkml/