home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10577 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  3.0 KB

  1. Path: sparky!uunet!know!mips2!news.bbn.com!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!sh.wide!wnoc-kyo!icspub!oskgate0.mei!chorus.mei!saturn.mew!srl!gah
  2. From: gah@trc.mew.mei.co.jp (Gary A. Hildebrand)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Protected Mode Interrupts
  5. Message-ID: <GAH.92Nov13113931@HP370T.trc.mew.mei.co.jp>
  6. Date: 13 Nov 92 02:39:31 GMT
  7. References: <1992Oct29.075500.15529@cis.ohio-state.edu>
  8.     <GAH.92Nov9190759@HP370T.trc.mew.mei.co.jp>
  9.     <4614@cruzio.santa-cruz.ca.us>
  10. Sender: usenet@srl.mew.mei.co.jp (USENet News Admin)
  11. Organization: Matsushita Electric Works Ltd., Tokyo, Japan.
  12. Lines: 40
  13. In-Reply-To: aki@cruzio.santa-cruz.ca.us's message of 9 Nov 92 18:08:45 GMT
  14.  
  15. In article <4614@cruzio.santa-cruz.ca.us> aki@cruzio.santa-cruz.ca.us writes:
  16. >>I don't see a major problem in sharing interrupt numbers between
  17. >>IRQ chips and exceptions. You layer an exception handler on top
  18. >>of an IRQ handler. The exception handler checks if the PIC is
  19. >>requesting an interrupt. If it is, just call the IRQ handler.
  20. >>Otherwise handle the exception.  Of course the billion dollar
  21. >>question is how to handle an exception that happens simultaneously
  22. >>with an IRQ.  I don't have a billion bucks, thus I don't know.
  23. >>I suggest that everyone just moves the IRQs somewhere else. You
  24. >>can program the PIC with three bytes if you want to. Anybody
  25. >>want to get the data? I would need to dig it out of the manuals
  26. >>again, but it would be no problem.
  27.  
  28. The problem is that, I would guess 9 out of 10 hardware interrupt handlers
  29. out there don't even check which CPU they are running on, much less
  30. implement an exception handler on top of an IRQ handler.  Most BIOS
  31. implementations also provide nothing special for exceptions in the range of
  32. the hardware IRQ's, and most interrupt handlers contained in drivers or
  33. TSR's would not be able to chain off of the default BIOS handler anyway
  34. (think about it, the ROM BIOS would have to know to transfer control to the
  35. loaded handler, rather than the loaded handler just "stealing" the
  36. interrupt vector).  So, it's a pickle for these interrupts.  You can't just
  37. remap them now, since the whole world is used to doing things the one way.
  38. The onus is on IBM for having made such a terrible design decision to
  39. assign hardware interrupts to a range so close to reserved vectors (8086
  40. doesn't conflict with the range, just 386 or higher).
  41.  
  42. Having read another post related to this thread, I now realize that one
  43. software interrupt (INT 10H BIOS services) can also conflict with a
  44. reserved 386 or higher exception vector (Coprocessor Error).  But at least
  45. in the case of this, the ROM BIOS of the machine can do (and probably does
  46. do) something to check first for a possible exception.
  47.  
  48. Gary
  49.  
  50. --
  51. / Gary A. Hildebrand                 Internet: gah@mew.mei.co.jp       \
  52. /  Matsushita Electric Works, Ltd.   UUCP:     uunet!mew.mei.co.jp!gah \
  53. /   13-2, Mita 5-chome, Minato-ku    Fax:      03-3451-0793            \
  54. /    Tokyo 108, JAPAN                Tel:      03-3452-4941            \
  55.