GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Unreal mode

In x86 computing, unreal mode, also big real mode, flat real mode, or voodoo mode is a variant of real mode, in which one or more segment descriptors has been loaded with non-standard values, like 32-bit limits allowing access to the entire memory. Contrary to its name, it is not a separate addressing mode that the x86 processors can operate in. It is used in the 80286 and later x86 processors. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

In x86 computing, unreal mode, also big real mode, flat real mode, or voodoo mode is a variant of real mode, in which one or more segment descriptors has been loaded with non-standard values, like 32-bit limits allowing access to the entire memory. Contrary to its name, it is not a separate addressing mode that the x86 processors can operate in. It is used in the 80286 and later x86 processors. ==Mechanism== For efficiency reasons, the 80286 and all later x86 processors use the base address, size and other attributes stored in their internal segment descriptor cache whenever computing effective memory addresses, even in real mode. Therefore, a modification of the internal segment descriptor allows altering some properties of segments in real mode, like the size of addressable memory. This technique became widely used and is supported by all Intel processors. A program in unreal mode can call 16-bit code programmed for real mode (BIOS, DOS kernel and drivers) without any thunking. This makes an unreal mode driver simpler than a DPMI driver. However unreal mode is incompatible with protected mode operating systems such as Windows 3.x/9x/NT and OS/2. Big real mode has a 1 MiB code segment and a 4 GiB data segment. ==Enabling unreal mode== The 80286 microprocessor can be put into unreal mode only with help of the undocumented instruction LOADALL to modify the hidden segment base registers to point to the source or target memory location above 1 MiB. To put an 80386 or higher microprocessor into unreal mode, a program must first enter protected mode, find or create a flat descriptor in the GDT or LDT, load some of the data segment registers with the respective protected mode "selector", and then switch back to real mode. After returning to real mode, the processor will continue using the cached descriptors as established in protected mode, thus allowing access to 4 GiB of extended memory from real mode. Starting with the 80386, real mode programs can use the 32 bit registers with the Address Size Override Prefix. This allows programs to use an address like DS:[EBX]. In normal real mode, a fault occurs if EBX exceeds 0xFFFF. In unreal mode, the access is allowed. ==Variants of unreal mode== As described above, unreal mode usually involves using one or more data selectors to address data in memory more efficiently. This has been common practice and often referred to as "flat real mode" or "big real mode". The term "unreal mode" was introduced in 1991 by Rakesh K. Agarwal. ==See also== LOADALL Global EMM Import Specification (GEMMIS) x86 assembly language A20 line ==References== ==Further reading== Errata: [https://www.drdobbs.com/letters/184408436 (NB. Implements "Big real mode" SEG4G.) Intel IA-32 Software Developer's Manual - Volume 3A The Unabridged Pentium 4: IA32 Processor Genealogy, Addison Wesley . "Big real mode" (xxvi+738+iv pages, 3.5"-floppy Errata: [https://web.archive.org/web/20200222111742/http://www.geoffchappell.com/notes/dos/internals/* [https://patents.google.com/patent/US5642491 Method for expanding addressable memory range in real-mode processing to facilitate loading of large programs into high memory

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Unreal mode". 1772046334. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1340448671

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·