From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: d180ab3bd8,5e74e0b23842db90 X-Google-Attributes: gidd180ab3bd8,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.78.36 with SMTP id y4mr2619585wiw.1.1358656043865; Sat, 19 Jan 2013 20:27:23 -0800 (PST) Path: i11ni8421wiw.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!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: Sun, 13 Jan 2013 15:13:01 +0100 Organization: Update Computer Club Message-ID: References: <50dafa16$0$291$14726298@news.sunsite.dk> <50e0dd7c$0$281$14726298@news.sunsite.dk> <50e1b4b8.51590248@nntp.aioe.org> <50e357ee.3109505@nntp.aioe.org> <50f2699f.912543@nntp.aioe.org> NNTP-Posting-Host: 178-83-31-172.dynamic.hispeed.ch Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1358086381 2353 178.83.31.172 (13 Jan 2013 14:13:01 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Sun, 13 Jan 2013 14:13:01 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: <50f2699f.912543@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2013-01-13 09:01, paramucho wrote: > On Tue, 01 Jan 2013 19:37:04 +0100, Johnny Billquist > wrote: > > >>> The program would have different entry points for RT-11 and Unix, so >>> it can easily determine which system it's running under. It would then >>> use the appropriate system calls. Unix uses TRAP rather than EMT for >>> system calls. >> >> Hmm. I guess that could theoretically work. It would take some more >> serious analysis to see if an RT-11 image header could co-exist with a >> Unix one. Not something I'm going to dig into. >> I suspect that RSX and Unix image headers are not mergable. But I >> haven't looked at that either. >> >>>>> However, the only "mark time" request that Ancient Unix supplies >>>>> (Alarm) has a 1-second granularity--that's no use unless you willing >>>>> to wait about 20 seconds for a result. RSTS doesn't seem to >>>>> support mark time. RSX does, but I don't know if it maps through to >>>>> RTEM (it probably does since I think KED uses it). Most RT-11 systems >>>>> support mark time, and those that don't can be fixed by stealing the >>>>> clock vector. All RUST systems support mark time. I don't know about >>>>> TSX, but I'd guess TSX-plus supports it. >>>> >>>> Yeah, Unix timing isn't something to boast about either. >>>> RSTS/E isn't too great in this area either. >>>> I would suspect that RTEM gives some timer interface, since RT-11 have >>>> it, and RTEM is supposed to give you most of the RT-11 environment. >>>> System calls that can be implemented I would expect to be implemented. >>> >>> Alas, I haven't been able to locate any decent RTEM documentation >>> on-line. >> >> Me neither. But I can run programs to test things. :-) >> Except I don't know RT-11... > > I found the RTEM doc set and I will try to scan it sometime. RTEM is > based on the RT-11/FB monitor and supports .MRKT "mark time". > > I started looking at taking some of RT-11 monitor code and producing > an RSX image which would run a single RT-11 program, which made me > look at the low-memory compatibility between RT-11 and RSX-11. > > In memory, an RSX task begins with the "task header". RT-11 programs > use low memory differently, obviously, and their are conflicts. > > Version 2 RSX documentation says that a system copy of the header is > copied back to task memory before checkpointing. Version 3 doesn't > seem to say that. The system header is handled differently on mapped and unmapped systems, as well. The actual data used by the kernel is not stuff that you are allowed to manipulate in the program, since that would allow you to circumvent security. However, data was stored back in memory for checkpointing, since it needed to be preserved somehow. In M+, the data is never stored out, since headers are kept out of pool anyway, so they can be kept around for checkpointed tasks. > I played around with the task header of PIP in a live RSX system > (running under V11). It didn't seem to worry about me trashing most of > the entries, and the ones that it didn't like me altering wouldn't be > active in an RT-11 program (FCS pointer etc). Most of the stuff definitely don't care if you trash it, however, your written data might be overwritten again by RSX, if you get checkpointed. The only stuff down that that do matter are things used at the user level, which you noticed. You have FCS pointers, $DSW, but I think there might also be some overlay pointers if you use that, and I can't remember what else. But stuff used by libraries that you link, essentially. TKB knows an awful lot about FCS... > The one location which is heavily used is the DSW which receives the > status of the preceding RSX system call. I don't know how RTEM manages > the DSW. If it was me, I'd probably be context switching it > before/after issuing an exec. directive on behalf of an RT-11 program, > but their may be more sophisticated ways of managing the DSW. Quite possible they just save that location. I don't really know. As for FCS, they might just not use it... Nice with the documentation. Would be nice to read it... Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: bqt@softjar.se || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol