home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / programm / 3352 < prev    next >
Encoding:
Text File  |  1992-12-22  |  2.2 KB  |  48 lines

  1. Newsgroups: comp.programming
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!pasteur!cory.Berkeley.EDU!johnm
  3. From: johnm@cory.Berkeley.EDU (John D. Mitchell)
  4. Subject: Re: Semaphores, Swap, or Test_And_Set
  5. Message-ID: <1992Dec22.192229.17569@pasteur.Berkeley.EDU>
  6. Sender: nntp@pasteur.Berkeley.EDU (NNTP Poster)
  7. Nntp-Posting-Host: cory.berkeley.edu
  8. Organization: University of California, at Berkeley
  9. References: <1h53bpINNabh@usenet.INS.CWRU.Edu> <1992Dec22.055727.8056@nestmoi.rain.com> <1h7htbINNdg6@usenet.INS.CWRU.Edu>
  10. Date: Tue, 22 Dec 1992 19:22:29 GMT
  11. Lines: 35
  12.  
  13. In article <1h7htbINNdg6@usenet.INS.CWRU.Edu> trier@slc6.ins.cwru.edu (Stephen C. Trier) writes:
  14. [...]
  15. >I've been trying to figure out whether that LOCK prefix is necessary when
  16. >sharing the code between several virtual 8086s running on one 386.   I have
  17. >been unable to get a clear answer to this question -- is the LOCK prefix
  18. >useful only for multiprocessors that take advantage of it, or does it also
  19. >make the instruction noninterruptible?
  20.  
  21. The LOCK prefix code of the i80x86 CPUs locks down the system bus.  On a
  22. uniprocessor system it's only relevant if there is bus activity going on by
  23. the processor's back (e.g., DMA (which makes the system essentially a form
  24. of asymetrical multiprocessor :-)).
  25.  
  26. >An answer to the effect of, "A 386 instruction is never interruptible" is
  27. >OK, too -- I haven't been able to dig that sort of information out of the
  28. >references I can find.  Everything provides application-level information,
  29. >but none of the info I need about exactly when an interrupt or exception
  30. >can take place.  It seems strange, since this information is readily avail-
  31. >able for the 680[234]0.  Why isn't the 386/486 as well documented?  (Maybe
  32. >I'm looking in the wrong place?)
  33.  
  34. Interrupts are documented in the Intel manuals and in the TASM manuals (at
  35. least).  Note that some instructions can *NOT* be preceded by the LOCK
  36. prefix.
  37.  
  38. Check out "The Processor and Coprocessor" by Robert L. Hummel.  It's all
  39. about the nitty-gritty of the i80x86 family.
  40.  
  41. Hope this helps,
  42.         John
  43.  
  44. P.S.    Standard disclaimers apply.
  45.  
  46. P.P.S.    This part of this thread no longer belongs in comp.programming and
  47.     if continued, should be moved to one of the PC programming groups.
  48.