I/O Flashcards

1
Q

I/O subsystems common concepts

A
Port 
Bus (daisy chain or shared direct access)
Controller (host adapter)
I/O instructions control devices
Devices have addresses, used by 
Direct I/O instructions
Memory-mapped I/O

OS works with device drivers (not controllers)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Polling

A

Each interrupt is numbered; polling chks status
Determines state of device
command-ready, busy, error
Can run another device while polling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

General architecture for I/O device

A

Control registers
Command registers
Status registers
Buffer (read, write, handles timing differences)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Interrupts

A

I/O device driver initiate I/O
Input ready, output complete, or error generates interrupt signal

CPU interrupt request line triggered by I/O device
CPU transfers control to interrupt handler
Interrupt handler receives interrupts
Interrupt handler processes data, returns from interrupt
CPU resumes processing of interrupted task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Maskable interrupt

A

Maskable to ignore or delay some interrupts
Interrupt vector to dispatch interrupt to correct handler
Based on priority, some nonmaskable
Interrupt mechanism also used for exceptions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Direct Memory Access

A

Used to avoid programmed I/O for large data movement
Requires DMA controller
Bypasses CPU to transfer data directly between I/O device and memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Busy-wait cycle

A
Same as polling, a check status command
if (CMD)
    busy = 1;
while (1)
     {WAIT, do I/O stuff}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

when does cpu check for interrupt

A

end of every instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

how can interrupts be disabled

A

disabled by CLI (clear interrupts)

enabled by STI (set interrupts)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly