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-02 08:22:11 PST Xref: gmd.de comp.os.vms:34119 comp.sys.dec:11488 comp.sys.hp:26994 Newsgroups: comp.os.vms,comp.sys.dec,comp.sys.hp Path: gmd.de!xlink.net!math.fu-berlin.de!umn.edu!spool.mu.edu!uwm.edu!vixen.cso.uiuc.edu!sdd.hp.com!math.ohio-state.edu!sol.ctr.columbia.edu!emory!europa.eng.gtefsd.com!uunet!noc.near.net!news.cs.brandeis.edu!tober From: tober@cs.brandeis.edu (Benjamin Tober) Subject: Re: Move from VMS to Open VMS or to HP-UX? Advice Message-ID: <1993Nov2.153425.23138@news.cs.brandeis.edu> Sender: news@news.cs.brandeis.edu (USENET News System) Organization: Brandeis University - Computer Science Dept. References: <1993Oct26.175315@mccall.com> <1993Oct27.155931.2412@ivax> <1993Oct28.115633@mccall.com> Date: Tue, 2 Nov 1993 15:34:25 GMT In article <1993Oct28.115633@mccall.com> tp@mccall.com (Terry Poot) writes: >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. Well, the 80386 (and 486 and Pentium) have only some of these features. For instance, there are 4 protection modes, but they are settable only on a per-segment basis. Pages simply get a user/supervisor bit. Now, it is pretty much possible to simulate the needed behavior by making each segment one page, precisely page aligned. The problem with this is that, within one particular processor context, segment descriptors are a rather precious resource (there are, practically speaking, about 12 bits available for the descriptor numbers in any one context), so perhaps it would be possible to meet the protection requirements, but not very easily. As for interrupt priorities, no processor in the 80x86 line (actually, I haven't yet read a spec book for the Pentium, so I'm not absolutely sure about it) has much interrupt capability built in. Basically, they all have two interrupt lines, one for the non-maskable interrupt (NMI) and one for maskable interrupts. When an external (maskable) interrupt is asserted, the processor will acknowledge it within several machine cycles, at which point it is the responsibility of some piece of external hardware (usually some type of programmable interrupt controller) to drive the interrupt number onto the bus, and then the processor takes the appropriate branch in execution based on the contents of the interrupt descriptor table. Thus, interrupt priorities are entirely under the control of the external interrupt controller. The processor itself only has control over priority insofar as the interrupt flag (which allows maskable interrupts or doesn't allow them) may be set or unset. At least, however, in the 386 and higher running in protected mode, there are two different types of gates (interrupt and trap) that allow the interrupt flag to either be cleared or not cleared on the processing of an interrupt, based on the interrupt (in the 8086, 186, and 286 this was not true). Thus, with the proper interrupt controller, this criterion can be met (though not quite as efficiently as in a processor where interrupt processing is more tightly coupled to the CPU - i.e.- VAX, for instance). Note however that, for this discussion, IBM-standard PC-AT style intel boxes do not have the "proper" hardware at all. -ben -- Benjamin A. Tober - Technical Director -WBRS FM - 100.1Mhz in Waltham,Ma. email: tober@cs.brandeis.edu -FreeLiveMusic Four Times Weekly "Are you a truck?" -24hr/day all-genre diversity