From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Attributes: gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.82.103 with SMTP id h7mr6384419pay.11.1356833081763; Sat, 29 Dec 2012 18:04:41 -0800 (PST) Path: 6ni71629pbd.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: paramucho@hotmail.com (paramucho) Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: Access to RSTS/E IOPAGE Registers Date: Sun, 30 Dec 2012 02:04:34 GMT Organization: Aioe.org NNTP Server Message-ID: <50df9f30.1162285@nntp.aioe.org> References: <50dafa16$0$291$14726298@news.sunsite.dk> <50dd386e.29641484@nntp.aioe.org> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: CmgvwL3sOlojnxUjt8znzA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 1.5/32.451 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Fri, 28 Dec 2012 16:01:30 +0100, Johnny Billquist wrote: >On 2012-12-28 07:32, paramucho wrote: >> On Thu, 27 Dec 2012 22:16:00 +0100, Johnny Billquist >> wrote: >>> 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...) I've never used RTEM, but I have wondered whether a program running under RTEM can issue RSX exec directives as well as RT-11 EMTs? Ian