Docsity

system programming interrupt service routines, Slides of System Programming

Partial preview of the text

Download system programming interrupt service routines and more Slides System Programming in PDF only on Docsity!

System Programming

CS-

Lecture 1

FAHEEM NAWAZ KHAN

Educational Background

  • (^) Education
    • (^) BS(IT) Information Technology(2009)

SEECS-NUST H-12 Islbd

  • (^) MSCS in Information Retrieval (2015)

Muhammad Ali Jinnah University(MAJU),

Islbd

2

Course Information

  • (^) Course Code: CS 421
  • (^) Course Name System Programming
  • (^) Course Objective: This course will give students a closer look at various functions of a computer system and system programming; To gain insight into the implementation of an operating system from a programmer's perspective using C/C++ programming construct; To develop the ability to use a variety of components of the system libraries in design of system application considering concurrency, communication, portability, optimization and security concerns; To develop an understanding of the various components of the Operating Systems; Ability to build different system utilities for UNIX/LINUX environment; To develop ability of self-learning. 4

Reference Material

  • (^) Mansoor Sarwar, Robert Koretsky, and Aqeel

Sarwar, “UNIX: The Text Book”, 2nd Ed.,

Pearson Education, 2007. ISBN 81-317-1606-

  • (^) Neil Methew, Richard Stones “Beginning

Linux Programming”, 3rd Ed., Wiley

Publishing, Inc., 2004. ISBN 0-7645-4497-

  • (^) W. Richard Stevens, “Advance Programming

in the UNIX Environment”, 2nd Ed., Pearson,

2005. ISBN 978-81-317-0005-1.

  • (^) Operating Systems Internals and Design

Principles , 6th^ Edition, by William Stallings

Course Outline

  • (^) Introduction to System Programming
  • (^) Interrupt Mechanism
  • (^) Interrupts Description
  • (^) Use of ISR’s for Library Function
  • (^) Interrupt Interception
  • (^) Timer & Keyboard Interrupt Program
  • (^) EOI Code for Slave IRQ
  • (^) Microprocessor Signals
  • (^) Registers
  • (^) Parallel Ports (PPI)
  • (^) Direct Parallel Port Programming
  • (^) DMA Modes
  • (^) Types Of Serial Communication
  • (^) Static and Dynamic Libraries:
  • (^) Process Environment
  • (^) Memory management 7

What is System Programming? Application Programming System Programming Input Process Output

Means of Input Output Programmed input output Interrupt driven Direct Memory Access

Other

Processing

Computation

for I./O

I/O

Programmed I/O

Time

DMA Controller

I/O device

I/O controller

CPU

I/O control signals Buffering Error Correction and Detection

DMA Driven I/O

I/O

DMA

CPU

Register

Main Memory

  1. Input/Output Interrupts
    • from I/O controller, (Normal IO operation, IO Error)
  2. Hardware failure Interrupt
    • e.g. memory parity error (error in data) Interrupts

Interrupt Controller

  • (^) Handles the Priorities among hardware interrupt

Program Timing (Short I/O Wait)

Program Timing (Long I/O Wait)