Topics: Interrupts
Topics: Interrupts
Interrupts
-Shinu Nair
CSC469
Topics
What is an interrupt?
FreeBSD example
Linux in tutorial
CSC469
Interrupts
Defn
:
an event
external
to the currently
executing process that causes a
change in
the normal flow of instruction
execution;
usually generated by hardware
devices
external to the CPU
From
, Glossary
Key point is that interrupts are
asynchronous
w.r.t
. current process
can be efficient if events arrive rapidly
Alternative: Interrupts
CPU
Interrupt
Controller
Device
Device
Device
Device
Maskable
Non
Maskable
(NMI)
CSC469
Programmable interrupt
controller (PIC) part of
the
Southbridge
chip
8 inputs, 1 output
Newer systems use
Advanced PIC
(APIC)
for SMP support
interrupt vector
associates handlers with interrupts
program resumes
CSC469
What does
that
mean?
CSC469
Interrupt Context
borrows
s kernel stack
Have to be
very
careful about stack
allocated data
Can