PROTECTED MODE

  

Copyright © Philip M. Parker, INSEAD. Terms of Use.

PROTECTED MODE

Specialty Definition: PROTECTED MODE

DomainDefinition

Computing

Protected mode An operating mode of Intel 80x86 processors. The opposite of real mode. The Intel 8088, Intel 8086, Intel 80188 and Intel 80186 had only real mode, processors beginning with the Intel 80286 feature a second mode called protected mode. In real mode, addresses are generated by adding an address offset to the value of a segment register shifted left four bits. As the segment register and address offset are 16 bits long this results in a 20-bit address. This is the origin of the one megabyte (2^20) limit in real mode. There are 4 segment registers on processors before the Intel 80386. The 80386 introduced two more segment registers. Which segment register is used depends on the instruction, on the addressing mode and of an optional instruction prefix which selects the segment register explicitly. In protected mode, the segment registers contain an index into a table of segment descriptors. Each segment descriptor contains the start address of the segment, to which the offset is added to generate the address. In addition, the segment descriptor contains memory protection information. This includes an offset limit and bits for write and read permission. This allows the processor to prevent memory accesses to certain data. The operating system can use this to protect different processes' memory from each other, hence the name "protected mode". While the standard register set belongs to the CPU, the segment registers lie "at the boundary" between the CPU and MMU. Each time a new value is loaded into a segment register while in protected mode, the corresponding descriptor is loaded into a descriptor cache in the (Segment-)MMU. On processors before the Pentium this takes longer than just loading the segment register in real mode. Addresses generated by the CPU (which are segment offsets) are passed to the MMU to be checked against the limit in the segment descriptor and are there added to the segment base address in the descriptor to form a linear address. On a 80386 or later, the linear address is further processed by the paged MMU before the result (the physical address) appears on the chip's address pins. The 80286 doesn't have a paged MMU so the linear address is output directly as the physical address. The paged MMU allows for arbitrary remapping of four klilobyte memory blocks (pages) through a translation table stored in memory. A few entries of this table are cached in the MMU's Translation Lookaside Buffer to avoid excessive memory accesses. After processor reset, all processors start in real mode. Protected mode has to be enabled by software. On the 80286 there exists no documented way back to real mode apart from resetting the processor. Later processors allow switching back to real mode by software. Software which has been written or compiled to run in protected mode must only use segment register values given to it by the operating system. Unfortunately, most application code for MS-DOS, written before the 286, will fail in protected mode because it assumes real mode addressing and writes arbitrary values to segment registers, e.g. in order to perform address calculations. Such use of segment registers is only really necessary with data structures that are larger than 64 kilobytes and thus don't fit into a single segment. This is usually dealt with by the huge memory model in compilers. In this model, compilers generate address arithmetic involving segment registers. A solution which is portable to protected mode with almost the same efficiency would involve using a table of segments instead of calculating new segment register values ad hoc. To ease the transition to protected mode, Intel 80386 and later processors provide "virtual 86 mode". (1995-03-29). Source: The Free On-line Dictionary of Computing.

Source: compiled by the editor from various references; see credits.

Top     

Specialty Definition: Protected mode

(From Wikipedia, the free Encyclopedia)

Intel architecture supports real mode and protected mode, in short pmode first in 80286. Protected mode enables 32bit memory addressing, allowing to reach extended memory which cannot be easily done from real mode (16bit addressing & rmode segments = max 1Mb accessible). Protected mode also supplies *protection*, by not allowing one task to see another task's memory (address space). Another advantage is multitasking, which is much stabler than simillar multitasking in rmode.

In protected mode, first 32 interrupts are reserved for CPU exceptions. Every time Windows shows a "Blue screen of death", such an exception has happened. For instance, 0E is General Protection Fault and 00 Division by Zero.

For compatibility reasons, Intel compatible CPUs boot with real mode. A real mode task can be run under protected mode in Virtual 8086 mode (however v86 is a mode only in name).

In addition, even when protected mode in enabled, memory above 1MB is not accessible due to memory wrap-around designed to mimic 80286s. This is fixed by enabling the A20 Line

See also: X86, x86-assembly

External link

Source: adapted by the editor from Wikipedia, the free encyclopedia under a copyleft GNU Free Documentation License (GFDL) from the article "Protected mode."

Top     

Crosswords: PROTECTED MODE

Specialty definitions using "PROTECTED MODE": DOS Protected Mode Interface, DPMIreal modevirtual 86 mode, Virtual Control Program Interface. (references)

Top     

Commercial Usage: PROTECTED MODE

DomainTitle

Books

  • 80386 Protected Mode Programming in C (reference)

  • I386/I486 Advanced Programming: Real Mode, Protected Mode, Virtual 8086 Mode (reference)

    (more book examples)

Source: compiled by the editor from various references; see credits.

Top     

Expression: PROTECTED MODE

Expression using "PROTECTED MODE": dos Protected Mode Interface. Additional references.

Source: compiled by the editor from various references; see credits.

Top     

Frequency of Internet Keywords: PROTECTED MODE

The following statistics estimate the number of searches per day across the major English-language search engines as identified by various trade publications. Hyperlinks lead to commercial use of the expression at Amazon.com.
 
ExpressionFrequency
per Day

protected mode

17
Source: compiled by the editor from various references; see credits.

Top     

Anagrams: PROTECTED MODE

Scrabble® Enable2K-Verified Anagrams

Words within the letters "c-d-d-e-e-e-m-o-o-p-r-t-t"

-4 letters: compeered, comported, pedometer, potometer, proceeded, protected, torpedoed.

-5 letters: coempted, compered, competed, coopered, coredeem, cottered, depermed, deported, deportee, detected, detecter, detector, doctored, ectoderm, ectomere, odometer, podomere, pottered, preceded, precoded, promoted, repotted, roomette, tempered.

Source: compiled by the editor from various references; see credits.

SCRABBLE® is a registered trademark. All intellectual property rights in and to the game are owned in the U.S.A and Canada by Hasbro Inc., and throughout the rest of the world by J.W. Spear & Sons Limited of Maidenhead, Berkshire, England, a subsidiary of Mattel Inc. Mattel and Spear are not affiliated with Hasbro.

Top     

Alternative Orthography: PROTECTED MODE


Hexadecimal (or equivalents, 770AD-1900s) (references)

50 52 4F 54 45 43 54 45 44      4D 4F 44 45

Leonardo da Vinci (1452-1519; backwards) (references)

    

Binary Code (1918-1938, probably earlier) (references)

01010000 01010010 01001111 01010100 01000101 01000011 01010100 01000101 01000100 00100000 01001101 01001111 01000100 01000101

HTML Code (1990) (references)

&#80 &#82 &#79 &#84 &#69 &#67 &#84 &#69 &#68 &#32 &#77 &#79 &#68 &#69

ISO 10646 (1991-1993) (references)

0050 0052 004F 0054 0045 0043 0054 0045 0044      004D 004F 0044 0045

Encryption (beginner's substitution cypher): (references)

505249543937543938247493839

Top     



INDEX

1. Crosswords
2. Usage: Commercial
3. Expressions
4. Expressions: Internet
5. Anagrams
6. Orthography
7. Bibliography


  

Copyright © Philip M. Parker, INSEAD. Terms of Use.