protected mode

(redirected from P-mode)

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".
This article is provided by FOLDOC - Free Online Dictionary of Computing (

Protected Mode

(1) The native state of an Intel CPU, which provides access to all advanced memory management functions. It was introduced in 1982 with the 16-bit 286 chip, which was the first x86 chip to break the 1MB barrier of the original 8086/8088 architecture. See Real Mode, Virtual 8086 Mode, 32-bit processing and memory protection.

(2) (protected mode) May refer to memory protection or a type of secure environment. See memory protection.
Copyright © 1981-2019 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
References in periodicals archive ?
Ube offers the process in a C-mode, in which the mold is partly open during injection and decompression, and a P-mode, in which a shear-edged tool allows the mold to remain sealed throughout the process, with clamp motion merely changing the effective volume of the cavity.
The p-mode, or pressure-mode, vibrations move like sound waves and originate as
A number of proposed alterations of the standard model can account for the lower neutrino flux, but according to Faulkner, they all modify the center of the sun in the wrong way to be compatible with the sun's pressure wave or p-mode vibrations --except the WIMP model.
However, to hold up the sun's outer layers and provide proper physical conditions for the observed p-mode vibrations, the pressure should be maintained.
Solar vibrations have been observed since 1960, but up to now all the confirmed ones belonged to the pressure waves or p-modes.
Pressure waves or sound waves also called p-modes, on the other hand are easy to detect because they leave a trace but they provide no information about the sun's core, ( according to NASA.
After examining the data from the last 16 years researchers were able to find a regular imprint of g-modes by using data on the p-modes and how they traveled around the core of the sun.
These oscillations, known as "p-modes," are giant, resonating sound waves excited by the rumblings of convection currents; the random rumblings set the Sun as a whole to "ringing" at various pure tones like a bell.
It was looking for the p-modes, which should cause small but telltale variations in the star's brightness.
"We are certainly not surprised that they don't find any p-modes," says Hans Kjeldsen (University of Aarhus, Denmark), one of the letter's coauthors.