Protection in Virtual Mode

Slides:



Advertisements
Similar presentations
CPU Structure and Function
Advertisements

UQ: Explain in brief integer instruction pipeline stages of Pentium
EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today.
Computer Organization and Architecture
Chapter 12 CPU Structure and Function. CPU Sequence Fetch instructions Interpret instructions Fetch data Process data Write data.
Computer Organization and Architecture
Computer Organization and Architecture
Microprocessors system architectures – IA32 real and virtual-8086 mode Jakub Yaghob.
Vacuum tubes Transistor 1948 ICs 1960s Microprocessors 1970s.
1 Hardware and Software Architecture Chapter 2 n The Intel Processor Architecture n History of PC Memory Usage (Real Mode)
Vacuum tubes Transistor 1948 –Smaller, Cheaper, Less heat dissipation, Made from Silicon (Sand) –Invented at Bell Labs –Shockley, Brittain, Bardeen ICs.
Chapter 12 CPU Structure and Function. Example Register Organizations.
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
Lect 13-1 Lect 13: and Pentium. Lect Microprocessor Family  Microprocessor  Introduced in 1989  High Integration  On-chip 8K.
CH12 CPU Structure and Function
Intel
80386DX.
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
The Pentium Processor.
Introduction of Intel Processors
Fall 2012 Chapter 2: x86 Processor Architecture. Irvine, Kip R. Assembly Language for x86 Processors 6/e, Chapter Overview General Concepts IA-32.
ARM for Wireless Applications ARM11 Microarchitecture On the ARMv6 Connie Wang.
System Address Registers/Memory Management Registers Four memory management registers are used to specify the locations of data structures which control.
The original MIPS I CPU ISA has been extended forward three times The practical result is that a processor implementing MIPS IV is also able to run MIPS.
Introduction First 32 bit Processor in Intel Architecture. Full 32 bit processor family Sixth member of 8086 Family SX.
Virtual 8086 Mode  The supports execution of one or more 8086, 8088, 80186, or programs in an protected-mode environment.  An 8086.
Different Microprocessors Tamanna Haque Nipa Lecturer Dept. of Computer Science Stamford University Bangladesh.
Processor Architecture
80386DX functional Block Diagram PIN Description Register set Flags Physical address space Data types.
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
The Intel 86 Family of Processors
P5 Micro architecture : Intel’s Fifth generation
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Pentium Architecture Arithmetic/Logic Units (ALUs) : – There are two parallel integer instruction pipelines: u-pipeline and v-pipeline – The u-pipeline.
Different Microprocessors Tamanna Haque Nipa Lecturer Dept. of Computer Science Stamford University Bangladesh.
Fundamentals of Programming Languages-II
The Pentium Series CS 585: Computer Architecture Summer 2002 Tim Barto.
ALPHA 21164PC. Alpha 21164PC High-performance alternative to a Windows NT Personal Computer.
Chapter Overview General Concepts IA-32 Processor Architecture
An Interrupt is either a Hardware generated CALL (externally derived from a hardware signal) OR A Software-generated CALL (internally derived from.
Cache Organization of Pentium
William Stallings Computer Organization and Architecture 8th Edition
Introduction of microprocessor
contains 8086 processor and several additional functional chips: clock generator 2 independent DMA channels PIC 3 programmable 16-bit timers.
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Processor Organization and Architecture
Introduction to Pentium Processor
Intel
The Microarchitecture of the Pentium 4 processor
Microprocessor & Assembly Language
Computer Organization and ASSEMBLY LANGUAGE
MICROCOMPUTER ARCHITECTURE
Morgan Kaufmann Publishers Computer Organization and Assembly Language
CS 301 Fall 2002 Computer Organization
Main Memory Session - 16.
* From AMD 1996 Publication #18522 Revision E
Computer Architecture
ARM Introduction.
Architectural Support for OS
First Generation 32–Bit microprocessor
CPU Structure and Function
Chapter 11 Processor Structure and function
Presentation transcript:

Protection in Virtual Mode All VM Tasks execute at a privilege level 3. Virtual 8086 mode are subject to all protection checks defined in protection mode An attempt to execute privileged instruction will cause an exemption

Structure of a V86 Task A V-86 task consists Partly of 8086 program Partly of 80386 code that serves as the VM (Virtual Machine)monitor (80386 protected mode code (PL=0) with initialization and exception handling procedures) To run in V86 mode, 8086 program needs: A V-86 monitor Operating System Services

Entering and Leaving V86 Mode The processor can enter V86 by two means: Case 1: A task switch to an 80386 task loads the image of EFLAGS from the new TSS. The TSS of the new task contains the VM flag VM = 1 of the new EFLAGS indicates that the new task is executing 8086 instructions and therefore the segment registers from the TSS forms base addresses as 8086 would.

Entering and Leaving V86 Mode Case 2: An IRET from a procedure of an 80386 task loads the image of EFLAGS from the stack VM = 1 indicates that the procedure to which control is being returned is an 8086 procedure CPL at the time IRET is executed must be zero, else the processor does not change VM.

Entering and Leaving V86 Mode The processor leaves V86 mode when an interrupt or exception occurs. Case 1: The interrupt or exception causes a task switch which loads EFLAGS from the TSS of the new task. If the new TSS is an 80386 TSS and VM bit is 0 in the EFLAGS, then the processor clears the VM bit of EFLAGS loads the segment registers from the new TSS and begins executing the instructions of the new task according to 80386 protected-mode semantics.

Entering and Leaving V86 Mode Case 2: The interrupt or exception vectors to a privilege-level zero procedure. The processor stores the current setting of EFLAGS on the stack, then clears the VM bit. The interrupt or exception handler, therefore, executes as 80386 protected-mode code

P5 Micro architecture : Intel’s Fifth generation Chapter 3 P5 Micro architecture : Intel’s Fifth generation

Features of Pentium Introduced in 1993 with clock frequency ranging from 60 to 66 MHz The primary changes in Pentium Processor were: Superscalar Architecture Dynamic Branch Prediction Pipelined Floating-Point Unit Separate 8K Code and Data Caches Writeback MESI Protocol in the Data Cache 64-Bit Data Bus Bus Cycle Pipelining

Pentium Architecture UQ: Explain with block diagram how superscalar operation is carried out in Pentium Processor UQ:Draw and explain Pentium Processor architecture . Highlight architectural features

Pentium Architecture It has data bus of 64 bit and address bus of 32-bit There are two separate 8kB caches – one for code and one for data. Each cache has a separate address translation TLB which translates linear addresses to physical. Code Cache: 2 way set associative cache 256 lines b/w code cache and prefetch buffer, permitting prefetching of 32 bytes (256/8) of instructions

Pentium Architecture Prefetch Buffers: Four prefetch buffers within the processor works as two independent pairs. When instructions are prefetched from cache, they are placed into one set of prefetch buffers. The other set is used as when a branch operation is predicted. Prefetch buffer sends a pair of instructions to instruction decoder

Pentium Architecture Instruction Decode Unit: It occurs in two stages – Decode1 (D1) and Decode2(D2) D1 checks whether instructions can be paired D2 calculates the address of memory resident operands

Pentium Architecture Control Unit : Microcode ROM : This unit interprets the instruction word and microcode entry point fed to it by Instruction Decode Unit It handles exceptions, breakpoints and interrupts. It controls the integer pipelines and floating point sequences Microcode ROM : Stores microcode sequences

Pentium Architecture Arithmetic/Logic Units (ALUs) : There are two parallel integer instruction pipelines: u-pipeline and v-pipeline The u-pipeline has a barrel shifter The two ALUs perform the arithmetic and logical operations specified by their instructions in their respective pipeline