CSE 306: Opera.ng Systems
Interrupts and System Calls
Don Porter CSE 306
1
Interrupts and System Calls Don Porter CSE 306 1 CSE 306: - - PowerPoint PPT Presentation
CSE 306: Opera.ng Systems Interrupts and System Calls Don Porter CSE 306 1 CSE 306: Opera.ng Systems Last Time Ok, heres Open file handle 4 hw1.txt App App App Libraries Libraries Libraries User Super- System Call
1
App
2-2
Hardware Libraries Kernel User Super- visor App Libraries App Libraries System Call Table (350—1200) Open file “hw1.txt” Ok, here’s handle 4
3
4
Divide by zero! Program can’t make progress!
5
6
if (x) { printf(“Boo”); ... printf(va_args…){ ... Disk_handler (){ ... } RSP RIP RSP RIP
7
8
9
10
48 = JOS System Call 128 = Linux System Call
11
12
13
14
15
16
17
Code Segment: Kernel Code Segment Offset: &page_fault_handler //linear addr Ring: 0 // kernel Present: 1 Gate Type: Exception
18
19
20
21
22
23
25
29
30
31
32
33