Protected mode
In computing, protected mode, also called protected virtual address mode, is an operational mode of x86-compatible central processing units (CPUs). It allows system software to use features such as segmentation, virtual memory, paging and safe multi-tasking designed to increase an operating system's control over application software. When a processor that supports x86 protected mode is powered on, it begins executing instructions in real mode, in order to maintain backward compatibility with earlier x86 processors. Protected mode may only be entered after the system software sets up one descriptor table and enables the Protection Enable (PE) bit in the control register 0 (CR0). Protected mode was first added to the x86 architecture in 1982, with the release of Intel's 80286 (286) processor, and later extended with the release of the 80386 (386) in 1985. Due to the enhancements added by protected mode, it has become widely adopted and has become the foundation for all subsequent...
In computing, protected mode, also called protected virtual address mode, is an operational mode of x86-compatible central processing units (CPUs). It allows system software to use features such as segmentation, virtual memory, paging and safe multi-tasking designed to increase an operating system's control over application software. When a processor that supports x86 protected mode is powered on, it begins executing instructions in real mode, in order to maintain backward compatibility with earlier x86 processors. Protected mode may only be entered after the system software sets up one descriptor table and enables the Protection Enable (PE) bit in the control register 0 (CR0). Protected mode was first added to the x86 architecture in 1982, with the release of Intel's 80286 (286) processor, and later extended with the release of the 80386 (386) in 1985. Due to the enhancements added by protected mode, it has become widely adopted and has become the foundation for all subsequent enhancements to the x86 (IA-32) architecture, although many of those enhancements, such as added instructions and new registers, also brought benefits to the real mode. MASM program enter protected mode (set PE bit) mov EBX, CR0 ; save control register 0 (CR0) to EBX or EBX, PE_BIT ; set PE bit by ORing, save to EBX mov CR0, EBX ; save EBX back to CR0 clear prefetch queue; (using far jump instruction jmp) jmp CLEAR_LABEL CLEAR_LABEL: With the release of the 386, protected mode could be exited by loading the segment registers with real mode values, disabling the A20 line and clearing the PE bit in the CR0 register, without the need to perform the initial setup steps required with the 286. In real mode each logical address points directly into a physical memory location, every logical address consists of two 16-bit parts: The segment part of the logical address contains the base address of a segment with a granularity of 16 bytes, i.e. a segment may start at physical address 0, 16, 32, ..., 2 20 − 16. The offset part of the logical address contains an offset inside the segment, i.e. the physical address can be calculated as physical_address = segment_part × 16 + offset, if the address line A20 is enabled, or (segment_part × 16 + offset) mod 2 20 , if A20 is off. Every segment has a size of 2 16 bytes. if X = 1 then C is the Conforming bit, and determines which privilege levels can far-jump to this segment (without changing privilege level): if C = 0 then only code with the same privilege level as DPL may jump here; if C = 1 then code with the same or a lower privilege level relative to DPL may jump here. if X = 0 then C is the direction bit: if C = 0 then the segment grows up; if C = 1 then the segment grows down. X is the Executable bit: if X = 1 then the segment is a code segment; if X = 0 then the segment is a data segment. S is the Segment type bit, which should generally be cleared for system segments; DPL is the Descriptor Privilege Level; P is the Present bit; D is the Default operand size; G is the Granularity bit; Bit 52 of the 80386 descriptor is not used by the hardware.
References
- ^ "Memory access control method and system for realizing the same" . US Patent 5483646 . May 23, 1995. Archived from the original (Patent) on September 26, 2007 . Retrieved 2007-07-14 . The memory access control system according to claim 4, wherein said first address mode is a real address mode, and said second address mode is a protected virtual address mode. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1184367600.0
- ^ "General Information FAQ for the Coherent Operating System" . January 23, 1993. Archived from the original on June 4, 2016 . Retrieved January 7, 2014 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1794956400.0
- ^ "Microsoft XENIX 286 Press Release" (PDF) (Press release). Microsoft. Archived from the original (PDF) on 2014-10-21 . Retrieved 2015-08-17 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1439766000.0
- ^ "MINIX Information Sheet" . Archived from the original on January 7, 2014. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1794956400.0
- ^ Charles Petzold , Intel's 32-bit Wonder: The 80386 Microprocessor, PC Magazine , November 25, 1986, pp. 150-152 Wikipedia revision 1351428141, retrieved 2026-11-18 · 1794956400.0
- ^ Risley, David (March 23, 2001). "A CPU History" . PCMechanic. Archived from the original (Article) on August 29, 2008 . Retrieved 2007-07-24 . What is interesting is that the designers of the time never suspected anyone would ever need more than 1 MB of RAM. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185231600.0
- ^ Tom Yager (6 November 2004). "Sending software to do hardware's job" . InfoWorld . Archived from the original on 18 October 2014 . Retrieved 24 November 2014 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1794956400.0
- ^ "Intel 64 and IA-32 Architectures Software Developer's Manual Combined Volumes 3A, 3B, 3C, and 3D: System Programming Guide" . Intel . 9.9.1 Switching to Protected Mode, page 9-13. Archived from the original on 2019-09-06 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ "Intel 64 and IA-32 Architectures Software Developer's Manual Combined Volumes 3A, 3B, 3C, and 3D: System Programming Guide" . Intel . Section 9.10.2 STARTUP.ASM Listing, page 9-19. Archived from the original on 2019-09-06 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ "Intel 64 and IA-32 Architectures Software Developer's Manual Combined Volumes 3A, 3B, 3C, and 3D: System Programming Guide" . Intel . Section 21.33.1 Segment Wraparound, page 21-34. Archived from the original on 2019-09-06 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ "Intel 64 and IA-32 Architectures Software Developer's Manual Combined Volumes 3A, 3B, 3C, and 3D: System Programming Guide" . Intel . Section 9.9.2 Switching Back to Real-Address Mode, page 9-14. Archived from the original on 2019-09-06 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ 80286 and 80287 Programmer's Reference Manual (PDF) . Santa Clara, CA: Intel. 1987. Section 1.2 Modes of Operation. Archived (PDF) from the original on 2019-09-27 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ Mueller, Scott (March 24, 2006). "P2 (286) Second-Generation Processors" . Upgrading and Repairing PCs, 17th Edition (Book) (17 ed.). Que. ISBN 0-7897-3404-4 . Retrieved 2017-07-11 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1499727600.0
- ^ 80286 and 80287 Programmer's Reference Manual (PDF) . Santa Clara, California: Intel. 1987. Section 1.3.1 Memory Management. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1794956400.0
- ^ Shvets, Gennadiy (June 3, 2007). "Intel 80386 processor family" (Article) . Archived from the original on 2007-08-20 . Retrieved 2007-07-24 . 80386SX — low cost version of the 80386. This processor had 16 bit external data bus and 24-bit external address bus. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185231600.0
- ^ a b c "A+ - Hardware" (Tutorial/Guide) . PC Microprocessor Developments and Features Tutorials . BrainBell.com. Archived from the original on 2022-03-31 . Retrieved 2007-07-24 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185231600.0
- ^ "Memory access control method and system for realizing the same" (Patent) . US Patent 5483646 . May 6, 1998. Archived from the original on 2007-07-07 . Retrieved 2007-07-25 . This has been impossible to-date and has forced BIOS development teams to add support into the BIOS for 32 bit function calls from 32 bit applications. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185318000.0
- ^ 80286 and 80287 Programmer's Reference Manual (PDF) . Santa Clara, California: Intel. 1987. Appendix C 8086/8088 Compatibility Considerations. Archived (PDF) from the original on 2019-09-27 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ Dabak, Prasad; Millind Borate (October 1999). Undocumented Windows NT (Book). Hungry Minds. ISBN 0-7645-4569-8 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1794956400.0
- ^ Intel 64 and IA-32 Architectures Software Developer's Manual Volume 1: Basic Architecture . Intel . May 2019. Section 3.1 Modes of Operation. Archived from the original on 2019-09-06 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ Collins, Robert (2007). "Protected Mode Basics" . Retrieved 2025-07-21 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1753052400.0
- ^ Intel 64 and IA-32 Architectures Software Developer's Manual Volume 1: Basic Architecture . Intel . May 2019. Section 2.1 Brief History of Intel 64 and IA-32 Architecture. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1794956400.0
- ^ Robinson, Tim (August 26, 2002). "Virtual 8086 Mode" . berliOS. Archived from the original (Guide) on October 3, 2002 . Retrieved 2007-07-25 . ... secondly, protected mode was also incompatible with the vast amount of real-mode code around at the time. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185318000.0
- ^ a b 80386 Programmer's Reference Manual (PDF) . Santa Clara, CA: Intel. 1986. Section 2.1 Memory Organization and Segmentation. Archived (PDF) from the original on 2018-12-28 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ a b c d e Kaplan, Yariv (1997). "Introduction to Protected-Mode" . Internals.com. Archived from the original (Article) on 2007-06-22 . Retrieved 2007-07-24 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185231600.0
- ^ Intel 80386 Programmer's Reference Manual 1986 (PDF) . Santa Clara, CA: Intel. 1986. Chapter 7, Multitasking. Archived (PDF) from the original on 2018-12-28 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ a b c "Global Descriptor table - OSDev Wiki" . Archived from the original on 2019-01-15 . Retrieved 2019-01-15 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1547506800.0
- ^ Gareau, Jean. "Advanced Embedded x86 Programming: Paging" . Embedded.com. Archived from the original (Guide) on 2008-05-16 . Retrieved 2007-07-29 . Only one page directory may be active at a time, indicated by the CR3 register. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185663600.0
- ^ a b "What Is PAE X86?" . Microsoft TechNet. May 28, 2003. Archived from the original (Article) on 2008-04-22 . Retrieved 2007-07-29 . The paging process allows the operating system to overcome the real physical memory limits. However, it also has a direct impact on performance because of the time necessary to write or retrieve data from disk. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185663600.0
- ^ Hyde, Randall (November 2004). "12.10. Protected Mode Operation and Device Drivers" . Write Great Code . O'Reilly. ISBN 1-59327-003-8 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1794956400.0
- ^ a b root (July 14, 2007). "Guide: What does protected mode mean?" (Guide) . Delorie Software . Archived from the original on 2023-07-03 . Retrieved 2007-07-14 . The purpose of protected mode is not to protect your program. The purpose is to protect everyone else (including the operating system) from your program. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1184367600.0
- ^ a b Intel 64 and IA-32 Architectures Software Developer's Manual Volume 1: Basic Architecture . Intel . May 2019. Section 3.1 Modes of Operation. Archived from the original on 2019-09-06 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ a b Intel 64 and IA-32 Architectures Software Developer's Manual Volume 1: Basic Architecture . Intel . May 2019. Section 6.3.5 Calls to Other Privilege Levels. Archived from the original on 2019-09-06 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ a b zwanderer (May 2, 2004). "news: Multitasking for x86 explained #1" . NewOrer . NewOrder. Archived from the original (Article) on 2007-02-12 . Retrieved 2007-07-29 . The reason why software task switching is so popular is that it can be faster than hardware task switching. Intel never actually developed the hardware task switching, they implemented it, saw that it worked, and just left it there. Advances in multitasking using software have made this form of task switching faster (some say up to 3 times faster) than the hardware method. Another reason is that the Intel way of switching tasks isn't portable at all Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185663600.0
- ^ zwanderer (May 2, 2004). "news: Multitasking for x86 explained #1" . NewOrer . NewOrder. Archived from the original (Article) on 2007-02-12 . Retrieved 2007-07-29 . ... both rely on the Intel processors ability to switch tasks, they rely on it in different ways. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185663600.0
- ^ Intel 64 and IA-32 Architectures Software Developer's Manual Combined Volumes 3A, 3B, 3C, and 3D: System Programming Guide . Intel . May 2019. Section 20.2.7 Sensitive Instructions. Archived from the original on 2019-09-06 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ Intel 64 and IA-32 Architectures Software Developer's Manual Combined Volumes 3A, 3B, 3C, and 3D: System Programming Guide . Intel . May 2019. Section 20.2 Virtual 8086 Mode. Archived from the original on 2019-09-06 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ Robinson, Tim (August 26, 2002). "Virtual 8086 Mode" . berliOS. Archived from the original (Guide) on October 3, 2002 . Retrieved 2007-07-25 . A downside to using V86 mode is speed: every IOPL-sensitive instruction will cause the CPU to trap to kernel mode, as will I/O to ports which are masked out in the TSS. Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185318000.0
- ^ Robinson, Tim (August 26, 2002). "Virtual 8086 Mode" . berliOS. Archived from the original (Guide) on October 3, 2002 . Retrieved 2007-07-25 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185318000.0
- ^ Intel 64 and IA-32 Architectures Software Developer's Manual Volume 1: Basic Architecture . Intel . May 2019. Section 2.1.2 The Intel 286 Processor (1982). Archived from the original on 2019-09-06 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ a b Intel 64 and IA-32 Architectures Software Developer's Manual Volume 1: Basic Architecture . Intel . May 2019. Section 2.1.3 The Intel 386 Processor (1985). Archived from the original on 2019-09-06 . Retrieved 2019-09-06 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1567724400.0
- ^ a b "Intel Global Citizenship Report 2003" . Archived from the original (Timeline) on 2008-03-22 . Retrieved 2007-07-14 . 1985 Intel launches Intel386 processor Wikipedia revision 1351428141, retrieved 2026-11-18 · 1184367600.0
- ^ "ProtectedMode overview [deinmeister.de]" (Website) . Retrieved 2007-07-29 . Wikipedia revision 1351428141, retrieved 2026-11-18 · 1185663600.0
Cite this
"Protected mode". 1777319465. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1351428141 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy