In DOS Memory Administration
In DOS memory management, prolonged memory refers to memory above the first megabyte (220 bytes) of handle area in an IBM Computer or appropriate with an 80286 or later processor. The term is primarily used under the DOS and Windows working methods. DOS applications, working in real mode or digital x86 mode, can not instantly access this memory, however are in a position to take action by an software programming interface (API) called the Extended Memory Specification (XMS). This API is applied by a driver (such as HIMEM.SYS) or the operating system kernel, which takes care of memory administration and copying memory between conventional and extended memory, by temporarily switching the processor into protected mode. On this context, the term "prolonged memory" may consult with either the whole of the prolonged memory or solely the portion available via this API. Extended memory will also be accessed instantly by DOS applications operating in protected mode utilizing VCPI or DPMI, two (totally different and incompatible) methods of using protected mode underneath DOS.
Prolonged memory shouldn't be confused with expanded memory (EMS), an earlier method for increasing the IBM Computer's memory capacity beyond 640 kB (655,360 bytes) using an expansion card with financial institution switched memory modules. Due to the accessible support for expanded memory in in style purposes, machine drivers had been developed that emulated expanded memory utilizing prolonged memory. Later two additional methods have been developed allowing direct entry to small parts of further memory above 640 KB from actual mode. One of those is referred to as the excessive memory space (HMA), consisting of the primary nearly 64 KB of prolonged memory, and the other is referred to because the higher memory area (UMA; additionally referred to as higher memory blocks or UMBs), situated in the handle vary between 640 KB and 1 MB which the IBM Computer designates for hardware adapters and ROM. On x86-primarily based PCs, prolonged memory is just accessible with an Intel 80286 processor or greater, such because the IBM Computer AT.
Solely these chips can instantly address more than 1 megabyte of RAM. The sooner 8086/8088 processors can make use of more than 1 MB of RAM if one employs particular hardware to make selectable components of it appear at addresses under 1 MB. On a 286 or better Computer equipped with more than 640 kB of RAM, the additional memory would generally be re-mapped above the 1 MB boundary, since the IBM Laptop architecture reserves addresses between 640 kB and 1 MB for neural entrainment audio system ROM and peripherals. Prolonged memory isn't accessible in actual mode (aside from a small portion referred to as the high memory space). Solely applications executing in protected mode can use extended memory immediately. A supervising protected-mode operating system resembling Microsoft Windows manages software applications' entry to memory. The processor makes this memory accessible through the worldwide Descriptor Table (GDT) and a number of Local Descriptor Tables (LDTs).
The memory is "protected" within the sense that memory segments assigned a neighborhood descriptor can't be accessed by another program as a result of that program makes use of a different LDT, and memory segments assigned a world descriptor can have their entry rights restricted, causing a processor exception (e.g., a basic safety fault or GPF) on violation. This prevents programs running in protected mode from interfering with one another's memory. Prolonged memory went unused at first as a result of no software ran within the 80286's protected mode. By contrast, the business rapidly adopted 1985's expanded memory customary, which works with all PCs regardless of processor. A protected-mode operating system resembling Microsoft Home windows can even run actual-mode packages and supply expanded memory to them. The DOS Protected Mode Interface (DPMI) is Microsoft's prescribed methodology for a DOS program to access prolonged memory under a multitasking surroundings. The Prolonged Memory Specification (XMS) is the specification describing using IBM Laptop prolonged memory in real mode for storing knowledge (however not for running executable code in it).
Memory is made available by prolonged memory manager (XMM) software program corresponding to HIMEM.SYS. XMS model 2.0, released in July 1988, allowed for up to sixty four MB of memory. With XMS model 3.Zero this increased to four GB (232 bytes). 4 TB (four terabytes) however limited by the specification to four GB. Four GB is the tackle range of the 80386 and the 80486, the one 32-bit Intel x86 CPUs that existed when XMS 3.0 was revealed in 1991.) XMS 3.0 retains the original XMS 2.Zero API features with their unique sixty four MB restrict but provides new "super prolonged memory" features that assist 4 GB of prolonged memory (minus the first 1 MB) and may be referred to as only with a 32-bit CPU (since these "tremendous" functions use 32-bit CPU registers to move values). To differentiate between the possibly completely different quantity of memory that might be obtainable to applications, depending on which version of the specification they had been developed to, the latter may be referred to as tremendous extended memory (SXMS). The prolonged memory supervisor can be responsible for managing allocations in the excessive memory area (HMA) and the higher memory area (UMA; additionally referred to as upper memory blocks or UMBs). In follow the upper memory space will probably be supplied by the expanded memory supervisor (EMM), after which DOS will try to allocate all of them and manage them itself. Mendelson, neural entrainment audio Edward (1989-12-12). "A Slot Filled with RAM". Laptop Journal. Vol. 8, no. 21. Ziff Davis Publishing Co. pp.