To switch from real mode to protected mode in the 80386, set the PE bit in the MSW in CR0, and then immediately execute a JMP to flush the prefetch queue.
Real mode -16bit Protected mode -32bit
real mode, protected mode and long mode real mode, protected mode and long mode Or: 16-bit modes (real, protected or virtual), 32-bit mode (protected), 64-bit modes
Real Mode and Protected Mode
protected mode
processor contain three modes. 1.Real mode -When PC in DOS programing. 2.Protected Mode -When PC operating system mode 3.virtual mode real mode - when PC in protected and real mode conmmenly.
A CPU operates in real mode and protected mode
Real mode uses 16 bit data path while protected mode uses 32 bit data path.
Real mode: Real mode, also called real address mode, is an operating mode of 80286 and later x86-compatible CPUs. Real mode is characterized by a 20 bit segmented memory address space (giving just over 1 MB of addressable memory) and unlimited direct software access to all memory and I/O addresses and peripheral hardware. Real mode provides no support for memory protection, multitasking, or code privilege levels. 80186 CPUs and earlier, back to the original 8086, have only one operational mode, which is equivalent to real mode in later chips. All x86 CPUs in the 80286 series and later start in real mode when reset. Protected mode: In computing, protected mode, also called protected virtual address mode,[1] is an operational mode of x86-compatible central processing units (CPU). It allows system software to utilize features such as virtual memory, paging, safe multi-tasking, and other features 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 backwards compatibility with earlier x86 processors.Protected mode may only be entered after the system software sets up several descriptor tables 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 architecture. D.Ghosh Roy
The differences are given below: 80286 1. Low data bus width (16 bit) 2. Returning from protected mode to real mode is hard and complicated. 3. Small RAM/Memory 80386 1. High data bus width (32 bit) 2. Easy for 80386 3. Big RAM / Memory (Real memory = 4GB and virtual memory= 64TB)
Virtual Real Mode is an enhancement, of protected mode. Protected mode is normally used to run graphical multitasking operating systems such as the various flavors of Windows. There is often a desire to be able to run DOS programs under Windows, but DOS programs need to be run in real mode, not protected mode.Virtual real mode was created to solve this problem. In essence, it emulates real mode from within protected mode, allowing DOS programs to run. A protected mode operating system such as Windows can in fact create multiple virtual real mode machines, each of which appear to the software running them as if they are the only software running on the machine. Each virtual machine gets its own 1 MB address space, an image of the real hardware BIOS routines, everything.Virtual real mode is what is used when you use a DOS box or run a DOS game in Windows 95. When you start a DOS application, Windows 95 creates a virtual DOS machine for it to run under. Virtual real mode was introduced starting with the 386 family of processors.
In real mode, the effective memory address is the same as the linear, or physical, memory address. The segment register operates by specifying the base of a 64kb region of memory, each region overlapping the other by 16 bytes. In protected mode, the effective address is translated by the page table which provides a larger region size and more memory addressibility. The segment register, a/k/a selector, selects the particular page table to use.
i finnally freackin found it, real mode(16 bit) allows access to all hardware resources, where protected mode(32 bit) controls how the application accesses the hardware. In real-mode, an application has complete access to all hardware resources. This "open door" policy can create problems when applications make conflicting commands to the hardware. In protected mode and long mode, the OS controls how an application can access hardware.page 53 in CompTIA A+ Guide to Managing & Maintaining Your PC, Sixth Edition by Jean Andrews