From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,32c594a83e2d8db X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,32c594a83e2d8db X-Google-Attributes: gid1164f8,public X-Google-Thread: 114b0c,32c594a83e2d8db X-Google-Attributes: gid114b0c,public X-Google-ArrivalTime: 1993-11-01 05:24:58 PST Xref: gmd.de comp.os.vms:33995 comp.sys.dec:11431 comp.sys.hp:26914 Path: gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!usenet.ucs.indiana.edu!indyvax.iupui.edu!imhw400 From: imhw400@indyvax.iupui.edu (Mark H. Wood) Newsgroups: comp.os.vms,comp.sys.dec,comp.sys.hp Subject: Porting VMS to Intel x86 architecture? (Was: Move from VMS to etc.) Message-ID: <1993Nov1.070956.2458@ivax> Date: 1 Nov 93 07:09:56 -0500 References: <1993Sep23.161016.12926@vms.eurokom.ie> <1993Oct28.115633@mccall.com> In article <1993Oct28.115633@mccall.com>, tp@mccall.com (Terry Poot) writes: > > In article <1993Oct27.155931.2412@ivax>, imhw400@indyvax.iupui.edu (Mark > H. Wood) writes: >>Actually I've never found a reason why VMS couldn't be ported to the >>i386 >>without excessive effort. I have a sneaking suspicion that 386/VMS >>actually >>exists somewhere on a tape of ideas tried and discarded. > > VMS requires certain architectural features. According to an article in > the Digital Technical Journal, Volume 4 Number 4, special issue 1992, > page 111, these include 4 protection modes, per-page memory protection, > and 32 interupt priority levels. BTW, the article implies that these > features are directly supported on the Alpha, not in PAL code, and that > they were put in expressly for VMS. PAL code is used to handle things > like software interupts and ASTs. > > I sincerely doubt that the 386 provides these features, but I could be wrong. Hmmm, could be. Let's see: o Priority interrupts don't have to be on the chip. The x86 chip has two external interrupts, one of which may be masked off. Let's save NMI for catastrophic events such as powerfail, and use INT. A cascade of eight 74278 priority registers can be mapped to a couple of IO-space registers and give us 32 priority interrupt levels. (Doubtless something smaller and faster could be concocted by someone who has newer chip databooks.) Just wire the LSB P1 output to INT. (Please understand that I was talking about the *chip* and any necessary supporting hardware, not the IBM PC architecture. The PC is barely capable of running *any* useful OS. o The four protection "modes" are called "rings" in the Intel part, but they are there. o Per-page protection is provided. The problem is that it may not be fine-grained enough for VMS' use. Basically the hardware is only aware of whether or not ring 3 (the outermost "mode", i.e. user) has access, and (separately) whether the page is writable. VMS wants a somewhat complicated scheme with cascading default access for inner modes, and separate write permission for certain mode pairs. Briefly cruising the IDSM didn't show me that VMS' actual use of the hardware is any simpler than the possibilities, which presumably were requested by the VMS team. Does anybody know enough about VMS' use of per-page protection to be able to say whether the difference would be crippling? There are other, less significant differences that might make x86/VMS a poor performer. The ridiculously narrow restrictions on the roles of the registers, for example, would give the BLISS compiler fits when trying to cope with some of the traditional VAX/VMS linkage modes, I'd say. (I haven't looked closely enough at the AXP to know whether this problem may already have been addressed.) Discussion? -- Mark H. Wood, Lead Systems Programmer +1 317 274 0749 [@disclaimer@] Internet: IMHW400@INDYVAX.IUPUI.EDU BITNET: IMHW400@INDYVAX When all that you have is a shell, everything looks like a pipe.