home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / arch / 10977 < prev    next >
Encoding:
Text File  |  1992-11-20  |  2.2 KB  |  51 lines

  1. Newsgroups: comp.arch
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!elroy.jpl.nasa.gov!decwrl!deccrl!news.crl.dec.com!payne
  3. From: payne@crl.dec.com (Andrew Payne)
  4. Subject: Re: DEC Alpha architecture issues
  5. Message-ID: <1992Nov20.183610.12796@crl.dec.com>
  6. Sender: news@crl.dec.com (USENET News System)
  7. Organization: DEC Cambridge Research Lab
  8. References: <1992Nov19.204209.6619@nntpd.lkg.dec.com> <DOCONNOR.92Nov20095251@potato.sedona.intel.com>
  9. Date: Fri, 20 Nov 1992 18:36:10 GMT
  10. Lines: 39
  11.  
  12. In article <DOCONNOR.92Nov20095251@potato.sedona.intel.com> doconnor@sedona.intel.com (Dennis O'Connor) writes:
  13. >
  14. >dipirro@star.dec.com (Steve DiPirro) writes:
  15. >] ... PALcode "instructions" actually appear as single instructions
  16. >]  in the Istream which is handy for debuggers, etc.  PALcode runs 
  17. >] with interrupts disabled, Istream memory management traps disabled,
  18. >]  and complete control over machine state. 
  19. >
  20. >Sounds like a microcoded instruction to me. Except, of course, that
  21. >there's no guarantee of what PALcodes are available on a particular
  22. >system, and that the microcode may be external to the chip.
  23.  
  24. No, it's not really microcode at all.
  25.  
  26. When the processor is running in PAL mode (as a result of executing a 
  27. call PAL opcode or taking an exception) the processor is fetching and
  28. executing instructions as usual, but:
  29.  
  30. 1. The I-stream is _physically mapped_ (otherwise, you can't do ITB 
  31.    manipulations)
  32.  
  33. 2. You can access the five implementation specific opcodes (that cause a
  34.    reserved opcode exception if executed in non-PAL mode)
  35.  
  36. 3. Interrupts are disabled (so you can do atomic operations)
  37.  
  38. Otherwise, when running in PAL mode, it is business as usual:  you can use 
  39. all of the Alpha instructions.  PALcode is just code written to run in 
  40. PAL mode (i.e. it uses the five special opcodes to manipulate the machine 
  41. state).
  42.  
  43. PALcode isn't necessarily stored in any special place:  it's fetched into
  44. the processor for execution in the same manner that all other code is 
  45. fetched (it gets cached in the I-cache, etc).  Most systems load PALcode 
  46. into main memory from ROM, disk, or network, just like you would load 
  47. boot code.
  48. -- 
  49. Andrew C. Payne
  50. DEC Cambridge Research Lab
  51.