From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.94.8 with SMTP id cy8mr9149910wib.1.1356706847860; Fri, 28 Dec 2012 07:00:47 -0800 (PST) Path: l12ni252094wiv.1!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: Access to RSTS/E IOPAGE Registers Date: Fri, 28 Dec 2012 16:01:30 +0100 Organization: Update Computer Club Message-ID: References: <50dafa16$0$291$14726298@news.sunsite.dk> <50dd386e.29641484@nntp.aioe.org> NNTP-Posting-Host: host-95-206-29-128.mobileonline.telia.com Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1356706847 14691 95.206.29.128 (28 Dec 2012 15:00:47 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Fri, 28 Dec 2012 15:00:47 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <50dd386e.29641484@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-12-28 07:32, paramucho wrote: > On Thu, 27 Dec 2012 22:16:00 +0100, Johnny Billquist > wrote: > >> On 2012-12-26 14:22, Jerome H. Fine wrote: >>> I require some help with a program which may be of interest >>> to other hobby users. The program is: >>> >>> SHOW EMULATOR or SHOWEM >>> >>> and runs under: >>> (a) RT-11 both UnMapped and Mapped Monitors >>> (b) TSX-Plus >>> (c) RUST both RUST/SJ and RUST/XM >>> (d) RSTS/E >>> (e) RTEM-11 >>> >>> The current Emulators which are detected and displayed >>> are SimH, Ersatz-11 and V11. If anyone knows of any >>> other PDP-11 emulators which can also be included, that >>> would be of great interest, especially if access to that >>> emulator for testing is possible. I have asked for help >>> in the past about this and the only other PDP-11 emulator >>> which runs RT-11 compatible programs is Charon which >>> unfortunately no longer seems to be available or even running. >>> If anyone can help expand the list, it would be appreciated!!! >>> >>> Unfortunately, for (d) and (e), I do not have any information >>> on how to access the IOPAGE registers since SHOWEM >>> requires access to SR0 (177572) and SR1 (177574) in >>> addition to the PSW (177776). >>> >>> I do not believe that RTEM-11 will ever allow a User program >>> to gain access to the IOPAGE registers, however, RSTS/E >>> may allow such access. Does anyone who is reading this >>> post know if access to the IOPAGE registers is possible >>> under RSTS/E for a program running in RT-11 compatibility' >>> mode? And do you also know how it is done? >>> >>> If there is no solution, then I will make to current SHOWEM >>> available to any hobby users who are interested. Otherwise, >>> I would prefer to delay until the RSTS/E solution is implemented. >> >> I would seriously doubt you could access the IOPAGE from RSTS/E as well, >> as that would allow you to circumvent the OS protection. >> >> That said, I can test running whatever you cook up in RTEM-11, if you >> want to. (Or contact me, and I can get you access to RTEM-11 yourself.) >> >> Johnny > > This old thread confirms that there is no (published) access method: > > http://www.classiccmp.org/pipermail/cctech/2003-March/086350.html > > Which says in part: > > In order to talk directly to a device under RSTS you need to be in > kernel mode, not user mode. I am not aware of a RSTS-native way to > do something like RSX or VMS connect-to-interrupt directives or the > like. Similarly there is not a (published) way to map I/O space to > user space. This is really the kind of thing you need to accomplish > what you are asking. > > I had a quick look at the various internals books but couldn't see > anything interesting. Also, the RSX CINT$ directive isn't really that interesting. All it does is establish an interrupt vector which will become a call to code in your program when an interrupt happens. It does not in general give you any access to the IO Page. (Although, when you are running in interrupt context, you are of course in kernel mode, with the IO page where you would expect it.) The common way to get access to the IO page in RSX is to build your program privileged, and run it. Then it will have the IO page mapped, as well as being able to switch to kernel mode if needed. Of course, a normal used can't run such a program... (And the CINT$ system call can also only be used by a privileged program...) Johnny