Calling this at the start of a program results in a better
chance of textmode being restored in case of a crash.
However it has to raise the iopl level to 3 to work. This is
a small security breach as it is inherited to any programs
you fork of. However, some SVGA card drivers have to use
If you use it call that function as the very first
function. Call it right before
will already enter a graphicsmode. (For font
and grafix state saving).
Don't overestimate the power of this function. Your application will continue to run
in background while a foreground application will restore a usable screen and graphics
mode in case of a crash.
demo shows the principal operation.
is called when the system crashes. However, realize that the call will take in a forked
copy of your program, you'll not have access to any globals modified after the