Special Registers Flags Page Directory Base Interrupt Vector Base Call Gate Base Call Gate Length Debug Address System Stack Pointer 0111??? 000 12 000.

Slides:



Advertisements
Similar presentations
Chapter 3 Basic Input/Output
Advertisements

More on Processes Chapter 3. Process image _the physical representation of a process in the OS _an address space consisting of code, data and stack segments.
Chapter 6 Limited Direct Execution
Set 20 Interrupts. INTERRUPTS The Pentium has a mechanism whereby external devices can interrupt it. Devices such as the keyboard, the monitor, hard disks.
Architectural Support for OS March 29, 2000 Instructor: Gary Kimura Slides courtesy of Hank Levy.
11/15/2005Comp 120 Fall November Seven Classes to Go! Questions! VM and Making Programs Go.
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
6-1 I/O Methods I/O – Transfer of data between memory of the system and the I/O device Most devices operate asynchronously from the CPU Most methods involve.
Interrupt Processing Haibo Wang ECE Department
OS Spring’03 Introduction Operating Systems Spring 2003.
Chapter 7 Interupts DMA Channels Context Switching.
CSI 400/500 Operating Systems Spring 2009 Lecture #9 – Paging and Segmentation in Virtual Memory Monday, March 2 nd and Wednesday, March 4 th, 2009.
CS 140 Lecture Notes: Virtual MemorySlide 1 Load-Time Relocation Process 1 0 ∞ Process 3 Operating System Process 6.
Process Description and Control A process is sometimes called a task, it is a program in execution.
OS Spring’04 Introduction Operating Systems Spring 2004.
Midterm Wednesday 11/19 Overview: 25% First Midterm material - Number/character representation and conversion, number arithmetic - DeMorgan’s Law, Combinational.
CSE 451: Operating Systems Autumn 2013 Module 6 Review of Processes, Kernel Threads, User-Level Threads Ed Lazowska 570 Allen.
Interrupts. What Are Interrupts? Interrupts alter a program’s flow of control  Behavior is similar to a procedure call »Some significant differences.
80386DX.
Operating Systems Chapter 8
DAT2343 Accessing Services Through Interrupts © Alan T. Pinck / Algonquin College; 2003.
Khaled A. Al-Utaibi  Interrupt-Driven I/O  Hardware Interrupts  Responding to Hardware Interrupts  INTR and NMI  Computing the.
Exec Function calls Used to begin a processes execution. Accomplished by overwriting process imaged of caller with that of called. Several flavors, use.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto OS-Related Hardware.
Virtual Memory Expanding Memory Multiple Concurrent Processes.
Lecture 11 Page 1 CS 111 Online Memory Management: Paging and Virtual Memory CS 111 On-Line MS Program Operating Systems Peter Reiher.
CSC 2405 Computer Systems II Exceptions Mini-Lecture Traps & Interrupts.
CSNB374: Microprocessor Systems Chapter 5: Procedures and Interrupts.
1 CSE451 Architectural Supports for Operating Systems Autumn 2002 Gary Kimura Lecture #2 October 2, 2002.
Virtual 8086 Mode  The supports execution of one or more 8086, 8088, 80186, or programs in an protected-mode environment.  An 8086.
4P13 Week 2 & 3 Talking Points 1. Kernel Processes 2.
Operating Systems 1 K. Salah Module 1.2: Fundamental Concepts Interrupts System Calls.
Processes and Virtual Memory
Segment Descriptor Segments are areas of memory defined by a programmer and can be a code, data or stack segment. In segments need not be all the.
10. Epilogue ENGI 3655 Lab Sessions.  We took control of the computer as early as possible, right after the end of the BIOS  Our multi-stage bootloader.
X86 (32-bit) Paging Reference –text: Tanenbaum ch.4.3 Reference on Win2K memory management –text: Tanenbaum ch
CS 140 Lecture Notes: Virtual MemorySlide 1 Load-Time Relocation Process 1 0 ∞ Process 3 Operating System Process 6.
Of Privilege, Traps, Interrupts & Exceptions Prof. Sirer CS 316 Cornell University.
ARM Cortex M3 & M4 Chapter 4 - Architecture
CS 140 Lecture Notes: Virtual Memory
MICROPROCESSOR BASED SYSTEM DESIGN
Operating Systems CMPSC 473
Microprocessor and Assembly Language
Exceptional Control Flow
Outline Paging Swapping and demand paging Virtual memory.
Anton Burtsev February, 2017
Protection of System Resources
Overview of today’s lecture
Memory Management References text: Tanenbaum ch.4.
CS 3305 System Calls Lecture 7.
Process Realization In OS
Structure of Processes
CS 140 Lecture Notes: Virtual Memory
Memory Management References text: Tanenbaum ch.4.
Segmentation Lecture November 2018.
Module IV Memory Organization.
CSE 451: Operating Systems Spring 2012 Module 6 Review of Processes, Kernel Threads, User-Level Threads Ed Lazowska 570 Allen.
CS 140 Lecture Notes: Virtual Memory
Accessing Services Through Interrupts
Exceptions Control Flow
Architectural Support for OS
Operating Systems Lecture 3.
CSE 451: Operating Systems Autumn 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 596 Allen Center 1.
Lecture 37 Syed Mansoor Sarwar
CSE 451: Operating Systems Autumn 2001 Lecture 2 Architectural Support for Operating Systems Brian Bershad 310 Sieg Hall 1.
CSE 451: Operating Systems Winter 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 412 Sieg Hall 1.
Architectural Support for OS
Lecture 35 Syed Mansoor Sarwar
CS 140 Lecture Notes: Virtual Memory
Chapter 1: Introduction CSS503 Systems Programming
Presentation transcript:

Special Registers Flags Page Directory Base Interrupt Vector Base Call Gate Base Call Gate Length Debug Address System Stack Pointer 0111??? SSIPSYSVMZNOF FFFFFFFE

Interrupts 1 = clock tick 2 = page fault 3 = keyboard click 4 = debug breakpoint 5 = privileged operation etc

System Call Indexes (call gate entries) 0 = fork 1 = exit 2 = alloc (request more memory pages) 3 = read 4 = write etc

Current Virtual Memory Map virtual addressphysical addresscontent Does not exist... 7FFFD000 7FFFE000 7FFFF Does not exist A B O.S.... FFFFD000 FFFFE000 FFFFF System mode stack

What happens when interrupt N is signalled if IP flag = 1, nothing push all normal regs on system stack push FLAGS on system stack set IP flag and SYS flag push PC on system stack set PC = [interrupt vector base reg + N]

What happens when SYSCALL N is executed if N =call gate length register signal “privileged operation” interrupt push all normal regs on system stack push FLAGS on system stack set SYS flag push PC on system stack set PC = [call gate base reg + N]

Page Table Entries Page addresses are all multiples of 4096 (4K)  last 12 bits are useless Used for page specific flags instead. Minimum Necessary: 2 bits RResident / Valid UUser-mode access permitted Any attempted access when R=0 or (U=0 and SYS flag = 0) results in PAGE FAULT interrupt.