Re: how to tell linux (on x86) to ignore 1M or memory

Previous thread: [patch] CFS scheduler, -v18 by Ingo Molnar on Friday, June 22, 2007 - 3:02 pm. (41 messages)

Next thread: Question about fair schedulers by Alberto Gonzalez on Friday, June 22, 2007 - 3:07 pm. (21 messages)
From: Bodo Eggert
Date: Friday, June 22, 2007 - 4:00 pm

The real mode on i386+ can actually access the whole 4GB address range due to
a former-bug-now-feature in the i386+. This "bug" causes the segment limit
to not be reset on return to real mode, but only on subsequent assigns to
the segment registers/selectors. Using a rarely used segment register like
GS, you could use extended memory in your program.

Obviously this needs 1) Entering and returning from protected mode, 2) all
programs to agree not to clobber GS and 3) not using v86 mode (EMM386.exe).
Therefore and because it was discovered in the late days of DOS it was not
in widespread use. Some DOS extenders were reported to use it ...

http://www.programmersheaven.com/mb/x86_asm/344953/344953/readmessage.aspx
-- 
The programmer's National Anthem is 'AAAAAAAAHHHHHHHH' 

Friß, Spammer: vO9EZegbA@hBtpA.7eggert.dyndns.org
 maFsnwE@Fvznj.7eggert.dyndns.org mhF-@PoxRjk.7eggert.dyndns.org
-

From: Rene Herman
Date: Friday, June 22, 2007 - 4:04 pm

Generally called "unreal mode". Yes, sure. Just a hack though.

Rene.
-

Previous thread: [patch] CFS scheduler, -v18 by Ingo Molnar on Friday, June 22, 2007 - 3:02 pm. (41 messages)

Next thread: Question about fair schedulers by Alberto Gonzalez on Friday, June 22, 2007 - 3:07 pm. (21 messages)