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

  1. Newsgroups: comp.arch
  2. Path: sparky!uunet!gatech!concert!decwrl!adobe!usenet
  3. From: zstern@adobe.com (Zalman Stern)
  4. Subject: Re: DEC Alpha architecture issues
  5. Message-ID: <1992Nov20.092635.9857@adobe.com>
  6. Sender: usenet@adobe.com (USENET NEWS)
  7. Organization: Adobe Systems Incorporated
  8. References: <1992Nov19.204209.6619@nntpd.lkg.dec.com>
  9. Date: Fri, 20 Nov 1992 09:26:35 GMT
  10. Lines: 46
  11.  
  12. In article <1992Nov19.204209.6619@nntpd.lkg.dec.com> dipirro@star.dec.com  
  13. (Steve DiPirro) writes:
  14. > In article <lgnfc3INNqnt@spim.mti.sgi.com>, woodacre@mips.com (Michael  
  15. Woodacre) writes...
  16. > >In article <1992Nov18.210416.27212@nntpd.lkg.dec.com>,
  17. > .. . .
  18. > >Can you explain how this is different from kernel code with interrupts
  19. > >disabled on any other risc processor? For instance, an R4000 can
  20. > >implement uniprocessor-atomic "instructions" which are sequences of
  21. > >MIPS instructions to implement complex functions by running code
  22. > >in kernel level with interrupts switched off.
  23. > There are certainly similarities. PALcode "instructions" actually appear
  24. > as single instructions in the Istream which is handy for debuggers, etc.
  25. > PALcode runs with interrupts disabled, Istream memory management traps
  26. > disabled, and complete control over machine state. The environment allows
  27. > more flexibility and more possibilities than merely running in the  
  28. "standard"
  29. > environment with interrupts disabled.
  30.  
  31. This is true of trap/syscall instructions on the R3000, R4000, and R6000 as  
  32. well. You will need properly written exception handlers to get all the  
  33. benefits, but PALcode has to obey many constraints as well. I'm going to  
  34. have to look at the details, but MIPS syscall may in fact conform to the  
  35. PALcode architecture. I can't find where the Alpha arch. defines any  
  36. functions which must be available only in PALmode.
  37.  
  38. If you really want an extra "privillege" level for "more flexibility and  
  39. possibilities" (whatever those may be), you can add one without touching a  
  40. single byte of user code. (the Alpha PALcall instruction looks almost  
  41. exactly like the MIPS syscall instruction to an application.) If I  
  42. understood Joel Boney's SPARC version 9 talk, they have something simillar  
  43. to PAL mode in their privelleged architecture. Supposedly for reliability  
  44. purposes more than anything else.
  45.  
  46. Like I said before, PALmode is more about usage than mechanism. (And it has  
  47. to be on Alpha given that most of the mechanism is implementation specific.) 
  48.  
  49. (I use the MIPS architecture above because it is the one I am most familliar  
  50. with. You may be able to substitute your favorite arch. without loss of  
  51. generality :-))
  52. --
  53. Zalman Stern           zalman@adobe.com            (415) 962 3824
  54. Adobe Systems, 1585 Charleston Rd., POB 7900, Mountain View, CA 94039-7900
  55.   "Yeah. Ask 'em if they'll upgrade my shifters too." Bill Watterson
  56.