From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 3717dac89a,32247abf28da27d4 X-Google-Attributes: gid3717dac89a,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!usenet.stanford.edu!news.ucr.edu!news.jpl.nasa.gov!nntp-server.caltech.edu!not-for-mail From: glen herrmannsfeldt Newsgroups: alt.sys.pdp11,comp.sys.dec,comp.os.vms Subject: Re: QBUS Prototyping Date: Fri, 30 Apr 2010 01:39:49 +0000 (UTC) Organization: California Institute of Technology, Pasadena Message-ID: References: <8265dgFs33U3@mid.individual.net> <4dff54d9-dfc7-4d90-9307-995e5d96e53f@y36g2000yqm.googlegroups.com> <4bd96b18$0$281$14726298@news.sunsite.dk> <4bd9e3cc$0$274$14726298@news.sunsite.dk> NNTP-Posting-Host: thalia.ugcs.caltech.edu X-Trace: naig.caltech.edu 1272591589 17621 131.215.176.116 (30 Apr 2010 01:39:49 GMT) X-Complaints-To: abuse@caltech.edu NNTP-Posting-Date: Fri, 30 Apr 2010 01:39:49 +0000 (UTC) User-Agent: tin/1.9.3-20080506 ("Dalintober") (UNIX) (Linux/2.6.26-2-686 (i686)) Xref: g2news2.google.com alt.sys.pdp11:1532 comp.sys.dec:1993 comp.os.vms:30691 In alt.sys.pdp11 Johnny Billquist wrote: > glen herrmannsfeldt wrote: >> In alt.sys.pdp11 Jerome H. Fine wrote: >> (snip) >>> I have made a suggestion which many may not appreciate for >>> implementation using a PDP-11 instruction set which runs under >>> the Erstaz-11 emulator, normally called E11 for short. (snip) >> Yes, there are always interesting things to do in emulation. >> Back to VM/370 (The Virtual Machine system for S/370, which >> actually goes back to the 360/67) there is the use of the DIAGNOSE >> instruction to do operations outisde the virtual machine. >> S/360 and S/370 define a system dependent DIAGNOSE instruction >> (it actually doesn't have an assembler mnemonic) which VM uses >> for such purposes. More specifically, VM runs the guest OS in user mode, and so diagnose is trapped, like other privileged instructions. Some only work in virtual supervisor state, with the privileged instruction exception reported to the guest in virtual user state. >> Are there any available opcodes in the PDP-11 instruction set, >> in case one did want to use a new instruction for emulation >> operations? > Sure. There are opcodes that are undefined, and which are > trapped by a PDP-11. (snip) >> I suppose the IOPAGE is where system dependent operations >> are supposed to be done on the PDP-11. > Well, you could say that. In reality, the I/O page is just a > part of the address space where the PDP-11 don't have normal > memory, but instead have devices. > You access them the same way as memory frmo the PDP-11, though. > So, for instance, to output a character on the console terminal, you > write to the address where the console terminal controller is located. > Obviously, a sane operating system don't allow users to access the I/O > page, since that would allow you to go around all the security and > integrity of the OS. So it might not be available in user state? > And that is done by not having the I/O page mapped into the users > virtual memory space. As the user program might want all pages mapped, then another way to access the emulator should be provided. -- glen