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.74.74 with SMTP id r10mr1724207wiv.3.1358656088547; Sat, 19 Jan 2013 20:28:08 -0800 (PST) Path: o9ni8452wio.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: Hartmut Brandt Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: Access to RSTS/E IOPAGE Registers Date: Mon, 14 Jan 2013 10:13:44 +0100 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> Mime-Version: 1.0 X-Trace: news.dfncis.de CZLpXurmibvFno01yxRVOguvfv9dLYUL2f14iCHVeOpmMIKdr5Og3yHR/2WpM3k2dQSICtC72V X-Orig-Path: KNOP-BEAGLE.kn.op.dlr.de!brandt_h Cancel-Lock: sha1:tWL6dpRVy7OI6w7dI7P1HQWMleI= X-X-Sender: brandt_h@KNOP-BEAGLE.kn.op.dlr.de In-Reply-To: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 13 Jan 2013, Johnny Billquist wrote: JB>On 2013-01-13 09:01, paramucho wrote: JB>> On Tue, 01 Jan 2013 19:37:04 +0100, Johnny Billquist JB>> wrote: JB>> JB>> JB>> > > The program would have different entry points for RT-11 and Unix, so JB>> > > it can easily determine which system it's running under. It would then JB>> > > use the appropriate system calls. Unix uses TRAP rather than EMT for JB>> > > system calls. JB>> > JB>> > Hmm. I guess that could theoretically work. It would take some more JB>> > serious analysis to see if an RT-11 image header could co-exist with a JB>> > Unix one. Not something I'm going to dig into. JB>> > I suspect that RSX and Unix image headers are not mergable. But I JB>> > haven't looked at that either. JB>> > JB>> > > > > However, the only "mark time" request that Ancient Unix supplies JB>> > > > > (Alarm) has a 1-second granularity--that's no use unless you JB>> > > > > willing JB>> > > > > to wait about 20 seconds for a result. RSTS doesn't seem to JB>> > > > > support mark time. RSX does, but I don't know if it maps through to JB>> > > > > RTEM (it probably does since I think KED uses it). Most RT-11 JB>> > > > > systems JB>> > > > > support mark time, and those that don't can be fixed by stealing JB>> > > > > the JB>> > > > > clock vector. All RUST systems support mark time. I don't know JB>> > > > > about JB>> > > > > TSX, but I'd guess TSX-plus supports it. JB>> > > > JB>> > > > Yeah, Unix timing isn't something to boast about either. JB>> > > > RSTS/E isn't too great in this area either. JB>> > > > I would suspect that RTEM gives some timer interface, since RT-11 JB>> > > > have JB>> > > > it, and RTEM is supposed to give you most of the RT-11 environment. JB>> > > > System calls that can be implemented I would expect to be JB>> > > > implemented. JB>> > > JB>> > > Alas, I haven't been able to locate any decent RTEM documentation JB>> > > on-line. JB>> > JB>> > Me neither. But I can run programs to test things. :-) JB>> > Except I don't know RT-11... JB>> JB>> I found the RTEM doc set and I will try to scan it sometime. RTEM is JB>> based on the RT-11/FB monitor and supports .MRKT "mark time". JB>> JB>> I started looking at taking some of RT-11 monitor code and producing JB>> an RSX image which would run a single RT-11 program, which made me JB>> look at the low-memory compatibility between RT-11 and RSX-11. JB>> JB>> In memory, an RSX task begins with the "task header". RT-11 programs JB>> use low memory differently, obviously, and their are conflicts. JB>> JB>> Version 2 RSX documentation says that a system copy of the header is JB>> copied back to task memory before checkpointing. Version 3 doesn't JB>> seem to say that. JB> JB>The system header is handled differently on mapped and unmapped systems, as JB>well. The actual data used by the kernel is not stuff that you are allowed to JB>manipulate in the program, since that would allow you to circumvent security. JB>However, data was stored back in memory for checkpointing, since it needed to JB>be preserved somehow. In M+, the data is never stored out, since headers are JB>kept out of pool anyway, so they can be kept around for checkpointed tasks. JB> JB>> I played around with the task header of PIP in a live RSX system JB>> (running under V11). It didn't seem to worry about me trashing most of JB>> the entries, and the ones that it didn't like me altering wouldn't be JB>> active in an RT-11 program (FCS pointer etc). JB> JB>Most of the stuff definitely don't care if you trash it, however, your JB>written data might be overwritten again by RSX, if you get checkpointed. JB> JB>The only stuff down that that do matter are things used at the user level, JB>which you noticed. You have FCS pointers, $DSW, but I think there might also JB>be some overlay pointers if you use that, and I can't remember what else. But JB>stuff used by libraries that you link, essentially. TKB knows an awful lot JB>about FCS... JB> JB>> The one location which is heavily used is the DSW which receives the JB>> status of the preceding RSX system call. I don't know how RTEM manages JB>> the DSW. If it was me, I'd probably be context switching it JB>> before/after issuing an exec. directive on behalf of an RT-11 program, JB>> but their may be more sophisticated ways of managing the DSW. JB> JB>Quite possible they just save that location. I don't really know. JB>As for FCS, they might just not use it... JB> JB>Nice with the documentation. Would be nice to read it... I wrote an RT-11 emulator for RSX-11M (should have been some 4.X version) back around 1987/88 to run the Whitesmith C-compiler on RSX. As far as I remember by lucky(?) co-incidence the low-mem fields used by RT-11 where not really used by RSX. The emulator mapped RT-11 file requests to RSX file requests so the program would see the RSX files. I could even oct-dump the RT program, produce a MACRO-11 text from it and assemble/link it with the emulator and got an executable that would look just like an RSX program. Unfortunately the code was all lost when I left university in 1991 :-( Just though I mention that it is possible... harti JB> JB> Johnny JB> JB>