e01.org

LOADALL

LOADALL is the common name for two different undocumented machine instructions of Intel 80286 and Intel 80386 processors, which allow access to areas of the internal processor state that are normally outside of the IA-32 API scope, like descriptor cache registers. The LOADALL for 286 processors is encoded 0Fh 05h, while the LOADALL for 386 processors is 0Fh 07h. Both variants – as the name implies – load all CPU internal registers in one operation. LOADALL had the unique ability to set up the visible part of the segment registers (selector) independently of their corresponding cached part, allowing the programmer to bring the CPU into states not otherwise allowed by the official programming model.

LOADALL is the common name for two different undocumented machine instructions of Intel 80286 and Intel 80386 processors, which allow access to areas of the internal processor state that are normally outside of the IA-32 API scope, like descriptor cache registers. The LOADALL for 286 processors is encoded 0Fh 05h, while the LOADALL for 386 processors is 0Fh 07h. Both variants – as the name implies – load all CPU internal registers in one operation. LOADALL had the unique ability to set up the visible part of the segment registers (selector) independently of their corresponding cached part, allowing the programmer to bring the CPU into states not otherwise allowed by the official programming model. Because LOADALL did not perform any checks on the validity of the data loaded into processor registers, it was possible to load a processor state that could not be normally entered, such as using real mode (PE=0) together with paging (PG=1) on 386-class CPUs. An in-circuit emulator (ICE) is a tool used for low-level debugging. On Intel 80386, asserting the undocumented pin at location B6 causes the microprocessor to halt execution and enter ICE mode. The microprocessor saves its entire state to an area of memory isolated from normal system memory. The layout of this area is suitable for the LOADALL instruction, and this instruction is used by ICE code to return to normal execution. In later processors, this evolved into System Management Mode (SMM). In SMM, the RSM instruction is used to load a full CPU state from a memory area. The layout of this memory area is similar to one used by the LOADALL instruction. 386-style LOADALL instruction can be executed on 486 too, but only in SMM mode. In later processors, the RSM instruction, with a different encoding, took its role. Microsoft's Codeview 3.0 and Borland's Turbo Debugger 2.0 correctly decode 286 and 386 LOADALL instructions. As the two LOADALL instructions were never documented and do not exist on later processors, the opcodes were reused in the AMD64 architecture. The opcode for the 286 LOADALL instruction, 0F05, became the AMD64 instruction SYSCALL; the 386 LOADALL instruction, 0F07, became the SYSRET instruction. These definitions were implemented even on Intel CPUs with the introduction of the Intel 64 implementation of AMD64. ==80286== Opcode 0F05. The instruction reads data from addresses 0x00800–0x00866, whatever the content of the segment registers. The 80286 LOADALL instruction can not be used to switch from protected back to real mode (it can't clear the PE bit in the MSW). However, use of the LOADALL instruction can avoid the need to switch to protected mode altogether. ==80386== Opcode 0F07. The instruction loads data from address ES:EDI. It actually uses ES, not the ES descriptor. ==See also== Concurrent DOS 286 FlexOS 286 IBM 4680 OS ==References== ==Further reading== (xxvi+738+iv pages, 3.5"-floppy Errata: [https://web.archive.org/web/20200222111742/http://www.geoffchappell.com/notes/dos/internals/[https://web.archive.org/web/20200222111853/https://gopher.tildeverse.org/gopher.viste.fr/1/programming/PC/DOS/DOS%2520Internals/crtdrvr][https://web.archive.org/web/20200222111945/https://gopher.tildeverse.org/gopher.viste.fr/1/programming/PC/DOS/DOS%2520Internals/xmswatch]

References

  1. ^ Collins, Robert R. (October 1991). "The LOADALL Instruction" . TECH Specialist - the Journal for Advanced PC Developers . 2 (10). Lawrence, Kansas, USA: R&D Publications, Inc. ISSN 1049-913X . Archived from the original on 2020-02-20 . Retrieved 2018-10-17 . [5] (NB. The magazine was soon renamed into "The DOS Developers Journal" and eventually into "The Windows/DOS Developer's Journal" (ISSN 1059-2407).) Wikipedia revision 1329350624, retrieved 2026-11-18 · 1539730800.0
  2. ^ Collins, Robert R. (January 1997). "Intel's System Management Mode" . Archived from the original on 2017-01-03 . Retrieved 2017-01-03 . Wikipedia revision 1329350624, retrieved 2026-11-18 · 1483398000.0
  3. ^ "Concurrent DOS 68K 1.2 – Developer Kit for Motorola VME/10 – Disk 2" . 1986-08-06 [1986-04-08]. Archived from the original on 2019-04-03 . Retrieved 2018-09-13 . (NB. This package also includes some header files from Concurrent DOS 286 , including STRUCT.H explicitly mentioning LOADALL for "8086 emulation".) Wikipedia revision 1329350624, retrieved 2026-11-18 · 1536793200.0
  4. ^ a b FlexOS Supplement for Intel iAPX 286-based Computers (PDF) . 1.3 (1 ed.). Digital Research, Inc. November 1986. Archived (PDF) from the original on 2019-04-21 . Retrieved 2018-08-14 . Wikipedia revision 1329350624, retrieved 2026-11-18 · 1534201200.0
  5. ^ "IBM selects Concurrent DOS-286 for PC AT retail system" (PDF) . European Review (18). Digital Research : 1. March 1986. Archived (PDF) from the original on 2019-04-03 . Retrieved 2018-09-15 . Wikipedia revision 1329350624, retrieved 2026-11-18 · 1536966000.0
  6. ^ Deitel, Harvey M.; Kogan, Michael S. (1992). The Design of OS/2 . Addison-Wesley . ISBN 0-201-54889-5 . Wikipedia revision 1329350624, retrieved 2026-11-18 · 1794956400.0
  7. ^ a b Duncan, Ray; Petzold, Charles ; Baker, M. Steven; Schulman, Andrew; Davis, Stephen R.; Nelson, Ross P.; Moote, Robert (1990). Extending DOS (1 ed.). Reading, MA, USA: Addison-Wesley Publishing Company, Inc. pp. 100– 103. ISBN 0-20155053-9 . Wikipedia revision 1329350624, retrieved 2026-11-18 · 1794956400.0
  8. ^ a b Van Gilluwe, Frank (1994). The Undocumented PC (1 ed.). Addison-Wesley . pp. 62– 70. ISBN 0-201-62277-7 . [4] Wikipedia revision 1329350624, retrieved 2026-11-18 · 1794956400.0
  9. ^ Calvo, Melissa; Forbes, Jim (1986-02-10). "IBM to use a DRI operating system" . InfoWorld . InfoWorld Media Group . Retrieved 2011-09-06 . {{ cite journal }} : CS1 maint: deprecated archival service ( link ) Wikipedia revision 1329350624, retrieved 2026-11-18 · 1315263600.0
  10. ^ a b Foster, Edward (1985-08-26). "Intel shows new 80286 chip – Future of DRI's Concurrent DOS 286 still unclear after processor fixed" . InfoWorld . 7 (34). InfoWorld Media Group : 21. ISSN 0199-6649 . Retrieved 2019-04-21 . {{ cite journal }} : CS1 maint: deprecated archival service ( link ) Wikipedia revision 1329350624, retrieved 2026-11-18 · 1555801200.0
  11. ^ a b Foster, Edward (1985-05-13). "Super DOS awaits new 80286 – Concurrent DOS 286 – delayed until Intel upgrades chip – offers Xenix's power and IBM PC compatibility" . InfoWorld . 7 (19). InfoWorld Media Group : 17– 18. ISSN 0199-6649 . Retrieved 2019-04-21 . {{ cite journal }} : CS1 maint: deprecated archival service ( link ) Wikipedia revision 1329350624, retrieved 2026-11-18 · 1555801200.0
  12. ^ "Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2B" (PDF) . Intel Corporation . December 2015. Archived (PDF) from the original on 2019-04-21 . Retrieved 2016-01-27 . Wikipedia revision 1329350624, retrieved 2026-11-18 · 1453849200.0
  13. ^ "Microsoft HIMEM.SYS 2.06 source code" . FTP server ( FTP ). [ dead ftp link ] (To view documents see Help:FTP ) Wikipedia revision 1329350624, retrieved 2026-11-18 · 1794956400.0
  14. ^ Necasek, Michal (2011-03-18). "HIMEM.SYS, unreal mode, and LOADALL" . OS/2 Museum . Archived from the original on 2017-01-03 . Retrieved 2017-01-03 . Wikipedia revision 1329350624, retrieved 2026-11-18 · 1483398000.0
  15. ^ Necasek, Michal (2013-10-18). "LOADALL Strikes Again" . OS/2 Museum . Archived from the original on 2017-01-03 . Retrieved 2016-01-27 . Wikipedia revision 1329350624, retrieved 2026-11-18 · 1453849200.0
  16. ^ a b c Necasek, Michal (2013-10-27). "More on LOADALL and OS/2" . OS/2 Museum . Retrieved 2018-10-17 . {{ cite web }} : CS1 maint: deprecated archival service ( link ) Wikipedia revision 1329350624, retrieved 2026-11-18 · 1539730800.0
  17. ^ a b c d Schulman, Andrew; Michels, Raymond J.; Kyle, Jim; Paterson, Tim ; Maxey, David; Brown, Ralf D. (1990). Undocumented DOS: A programmer's guide to reserved MS-DOS functions and data structures (1 ed.). Addison-Wesley . pp. 14– 15. ISBN 978-0-201-57064-9 . (xviii+694+viii pages, 2× 5.25"-floppies [1] ) Errata: [2] [3] Wikipedia revision 1329350624, retrieved 2026-11-18 · 1794956400.0
  18. ^ Schulman, Andrew; Brown, Ralf D. ; Maxey, David; Michels, Raymond J.; Kyle, Jim (1994) [November 1993]. Williams, Andrew (ed.). Undocumented DOS: A programmer's guide to reserved MS-DOS functions and data structures - expanded to include MS-DOS 6, Novell DOS and Windows 3.1 . The Andrew Schulman Programming Series (1st printing, 2nd ed.). Reading, Massachusetts, USA: Addison Wesley Publishing Company . p. 42 . ISBN 0-201-63287-X . (xviii+856+vi pages, 3.5"-floppy [6] ) Errata: [7] [8] Wikipedia revision 1329350624, retrieved 2026-11-18 · 1794956400.0
  19. ^ Slater, Michael (October 1987). "Secret 286 LOADALL instruction allows access to extended memory in real mode". Microprocessor Report . Wikipedia revision 1329350624, retrieved 2026-11-18 · 1794956400.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"LOADALL". 1766670244. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1329350624

JSON record · API collection · citation policy