home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / intel / 2230 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.8 KB

  1. Xref: sparky comp.sys.intel:2230 comp.sys.ibm.pc.hardware:29565
  2. Newsgroups: comp.sys.intel,comp.sys.ibm.pc.hardware
  3. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!yuma!csn!stortek!stortek!aarond
  4. From: aarond@xibm.StorTek.com (Aaron Dailey)
  5. Subject: 8259 PIC programming questions
  6. Message-ID: <AAROND.92Nov11120640@xibm.StorTek.com>
  7. Sender: usenet@stortek.com
  8. Nntp-Posting-Host: xibm.stortek.com
  9. Organization: StorageTek
  10. Date: Wed, 11 Nov 1992 19:06:40 GMT
  11. Lines: 26
  12.  
  13. I'm programming what is essentially a PC with several peripherals
  14. connected via 8259 programmable interrupt controller to a 386SX
  15. running in protected mode.  There two 8259s, in the normal AT cascaded
  16. arrangement. 
  17.  
  18. In the interrupt handler for these devices, I send a non specific end
  19. of interrupt (0x20) to the interrupt controller as the last thing I
  20. do.  I've looked at some source code, which sends a specific end of
  21. interrupt command to the PIC before exiting the ISR.  Other code I've
  22. seen uses nonspecific EOIs.  I've looked at the IBM Tech Ref for the
  23. AT, which documents that the BIOS initiailizes the 8259 to not special
  24. fully nested mode, which indicates to me that I should send it a
  25. specific EOI command.  Which do I need?
  26.  
  27. Also, I've looked at some source code which, while handling IRQ9, on
  28. the slave PIC, only sends an EOI to the master.  The Intel data sheets
  29. for the 8259 clearly state that EOIs must be sent to the master and
  30. slave PICs for an interrupt on a slave PIC.  What's the deal?  I
  31. understand that IRQ9 was IRQ2 on the master PIC on PC (8088) class
  32. machines, but doesn't the slave PIC need to be given an EOI?
  33.  
  34. --
  35. Aaron Dailey Internet: Aaron_Dailey@stortek.com
  36. StorageTek Corporation   Voice: (303) 673-4989, FAX: (303) 673-2570
  37. Mail:  MS0242, 2270 South 88th Street, Louisville, C0 80028
  38.  
  39.