From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: ffc31,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Attributes: gidf4c4f7386e,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.109.162 with SMTP id ht2mr9858237wib.1.1356837960206; Sat, 29 Dec 2012 19:26:00 -0800 (PST) Path: l12ni269109wiv.1!nntp.google.com!goblin1!goblin2!goblin.stu.neva.ru!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!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: Sun, 30 Dec 2012 04:25:57 +0100 Organization: Update Computer Club Message-ID: References: <50dafa16$0$291$14726298@news.sunsite.dk> <50dd386e.29641484@nntp.aioe.org> <50df9f30.1162285@nntp.aioe.org> NNTP-Posting-Host: host-95-206-29-128.mobileonline.telia.com Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1356837959 23185 95.206.29.128 (30 Dec 2012 03:25:59 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Sun, 30 Dec 2012 03:25:59 +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: <50df9f30.1162285@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-12-30 03:04, paramucho wrote: > 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? I haven't tried. But it might be, since I suspect they set up an SST handler for EMT traps in RTEM, and the EMT SST handler don't get called for known EMTs. But that is guessing on my part. You are free to test on MIM yourself. ;-) Johnny