1 / 24

System Programming

NFC-IET-2011. System Programming. Instructor : Somia Razzaq Lecture-01 Introduction Dated: March 07, 2011 Note: The lecture slides are taken from VU with slight modifications wherever it is needed. Course Grading. Quizzes(Surprise/Announced): 5% Assignments: 5% Final Project: 5%

lynna
Télécharger la présentation

System Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NFC-IET-2011 System Programming Instructor: Somia Razzaq Lecture-01 Introduction Dated: March 07, 2011 Note: The lecture slides are taken from VU with slight modifications wherever it is needed.

  2. Course Grading • Quizzes(Surprise/Announced): 5% • Assignments: 5% • Final Project: 5% • Class Participation, Attendance etc.: 5% • Mid. Exam: 30% • Final Exam. : 50% “Interaction is necessary, please ask question”

  3. What is System Programming? Application Programming System Programming InputOutput Process

  4. Three Layer Model • Accessing PC Hardware Application DOS BIOS H/W

  5. I/O Main Memory CPU Register DMA Means of Input/Output Programmed input/output Interrupt driven Direct Memory Access (DMA)

  6. Controllers • I/O control signals • Buffering • Error Correction and Detection I/O device I/O controller CPU

  7. I/O Controllers • DMA controller • Interrupt controller • Programmable Peripheral Interface (PPI) • Interval Timer • Universal Asynchronous Receiver Transmitter

  8. I/O Controller(Contd..)DMA Controller INPUT OUTPUT Main Memory DMA

  9. I/O Controller(Contd..) Interrupt Controller • Handles the Priorities among hardware interrupt

  10. File Management • Basics • Disk Structure • Disk Formatting • Sector and Clusters

  11. Data Structure in File Management • File Allocation Table(FAT12, FAT16, FAT32) • Directory Structure • BPB(BIOS Parameter Block) • DPB( Drive Parameter Block) • FCBs(File Control Block)

  12. Memory Management • Real Mode: processor can access only first one MB of memory to control the memory (in DOS) • Protected Mode: all of the memory interfaced with the processor can be accessed

  13. Real Mode • Data Structures used for memory management are • Memory Control Block (MCB) • Program Segment Prefix (PSP) • Determining • Allocated memory • Free memory

  14. Protected Mode • Data Structures used for memory management are • Local Descriptor Table (LDT) • Global Descriptor Table (GDT) • Interrupt Descriptor Table • Determine • Address Translation (Logical to Physical) • Exception Handling • Shifting from Real to Protected Mode

  15. Virus Definition and States • Types of Viruses • Executable file • Partition table / Boot Sector Virus • Detection • Removal • Prevention

  16. Device Drivers • It contains the routines which perform I/O operations on the device • Device Drivers for DOS • Device Drivers for Windows • Device Driver Development Kit (DDK)

  17. Methods of I/O

  18. Input D0 D0 D7 D7 Busy DR Strobe I/O Controller CPU Programmed input / output Output CPU

  19. Interrupt Driven input / output Output Input D0 D0 D7 D7 Strobe INT Busy INT IBF ACK I/O Controller CPU CPU I/O Controller

  20. DMA Driven I/O CPU I/O Main Memory Register DMA

  21. Hardware InterruptsSoftware Interrupts What are Interrupts?

  22. Program Flow 1 Steps 2 3 ISR Performing An I/O

  23. Other Processing Computation for I./O I/O Time Interrupt Driven I/O

  24. Other Processing Computation for I./O I/O Time Programmed I/O

More Related