Drivers, Interrupts, and Trap Explained - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

Drivers, Interrupts, and Trap Explained

Description:

Neither interrupt nor trap are function calls! ... Zombie. exit() syscall() - trap. wait() SW. HW. App. App. App. App. App. User mode. Kernel mode ... – PowerPoint PPT presentation

Number of Views:92
Avg rating:3.0/5.0
Slides: 5
Provided by: SM
Category:

less

Transcript and Presenter's Notes

Title: Drivers, Interrupts, and Trap Explained


1
Drivers, Interrupts, and Trap Explained
  • COMP346/5461 - Operating Systems
  • Tutorial 3.5
  • Revision 1.2
  • September 30, 2003

2
Interrupts and Trap Revisited
  • Neither interrupt nor trap are function calls!
  • Interrupt is an event, or a signal (do not
    confuse with UNIX signals), notifying the system
    that something happened.
  • Interrupts are not necessarily used to switch
    between processes (in scheduling), but cause a
    context swicth.
  • Trap is a software interrupt, it's synchronous,
    whereas an ordinary interrupt is asynchronous.
  • Trap is a CPU instruction, which is invoked when
    a user program wants either some service from an
    OS (system call) or causes an error (division by
    zero, segmentation fault, page fault, etc.)

3
The Big Picture
Common Interface open, close, read, write
System Call Interface
App
App
App
App
App
User mode
SW
Kernel mode
MM
kernel
PM
PTRDD
HDDD
CDDD
int
Ready queue
Bus
CPU add mult mov
trap
HW
DMA Ctl
Mon Ctl
Ptr Ctl
CD Ctl
int (IRQ)
int
4
Thats It -)
Write a Comment
User Comments (0)
About PowerShow.com