From: Hartmut Brandt <brandt_h@dlr.de>
Subject: Re: Access to RSTS/E IOPAGE Registers
Date: Mon, 14 Jan 2013 10:13:44 +0100 [thread overview]
Message-ID: <alpine.BSF.2.00.1301141006060.72915@KNOP-BEAGLE.kn.op.dlr.de> (raw)
In-Reply-To: <kcufdd$29h$1@Iltempo.Update.UU.SE>
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 <bqt@softjar.se>
JB>> wrote:
JB>>
JB>> <snip>
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>
next prev parent reply other threads:[~2013-01-14 9:13 UTC|newest]
Thread overview: 76+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-26 13:22 Access to RSTS/E IOPAGE Registers Jerome H. Fine
2012-12-26 15:35 ` Bill Gunshannon
2012-12-27 0:10 ` glen herrmannsfeldt
2012-12-27 21:13 ` Johnny Billquist
2012-12-27 21:25 ` glen herrmannsfeldt
2012-12-27 21:37 ` Johnny Billquist
2012-12-27 13:38 ` Jerome H. Fine
2012-12-27 21:16 ` Johnny Billquist
2012-12-28 6:32 ` paramucho
2012-12-28 15:01 ` Johnny Billquist
2012-12-30 2:04 ` paramucho
2012-12-30 3:25 ` Johnny Billquist
2012-12-30 18:25 ` jgharston
2012-12-30 21:44 ` Johnny Billquist
2012-12-31 0:34 ` Jerome H. Fine
2012-12-31 0:52 ` Johnny Billquist
2012-12-31 16:04 ` paramucho
2012-12-31 16:23 ` Bob Eager
2012-12-31 16:33 ` Johnny Billquist
2013-01-01 3:28 ` paramucho
2012-12-31 16:30 ` Johnny Billquist
2013-01-01 4:55 ` paramucho
2013-01-01 18:37 ` Johnny Billquist
2013-01-13 8:01 ` paramucho
2013-01-13 14:13 ` Johnny Billquist
2013-01-14 6:30 ` paramucho
2013-01-14 11:50 ` Johnny Billquist
2013-01-15 14:20 ` paramucho
2013-01-15 21:10 ` Johnny Billquist
2013-01-16 3:25 ` Jerome H. Fine
2013-01-16 4:39 ` Johnny Billquist
2013-01-16 13:43 ` paramucho
2013-01-16 18:59 ` Johnny Billquist
2013-01-17 11:56 ` paramucho
2013-01-22 9:53 ` Hartmut Brandt
2013-01-22 13:52 ` Johnny Billquist
2013-01-23 14:11 ` paramucho
2013-01-23 19:53 ` Johnny Billquist
2013-01-25 13:43 ` paramucho
2013-01-25 23:39 ` Johnny Billquist
2013-01-28 7:47 ` paramucho
2013-01-28 18:06 ` Johnny Billquist
2013-01-30 12:16 ` paramucho
2013-01-30 18:50 ` Johnny Billquist
2013-02-02 12:51 ` paramucho
2013-02-02 16:15 ` Johnny Billquist
2013-02-03 16:16 ` Jerome H. Fine
2013-02-04 12:03 ` paramucho
2013-02-04 16:58 ` Johnny Billquist
2013-02-15 12:34 ` paramucho
2013-02-15 13:08 ` Johnny Billquist
2013-02-15 15:15 ` paramucho
2013-02-15 16:04 ` Johnny Billquist
2013-02-17 13:02 ` paramucho
2013-02-17 13:43 ` Johnny Billquist
2013-02-19 14:09 ` paramucho
2013-02-20 11:18 ` paramucho
2013-02-21 0:23 ` Johnny Billquist
2013-02-21 0:22 ` Johnny Billquist
2013-02-24 14:10 ` paramucho
2013-02-24 15:00 ` Johnny Billquist
2013-03-06 15:33 ` paramucho
2013-03-06 23:51 ` Johnny Billquist
2013-03-20 10:15 ` paramucho
2013-03-20 13:01 ` Johnny Billquist
2013-03-20 21:42 ` Johnny Billquist
2013-04-14 16:48 ` paramucho
2013-04-14 18:28 ` Johnny Billquist
2013-04-15 10:30 ` Johnny Billquist
2013-03-20 17:33 ` Jerome H. Fine
2013-03-25 15:55 ` paramucho
2013-03-06 15:33 ` paramucho
2013-02-24 14:12 ` paramucho
2013-01-23 14:10 ` paramucho
2013-01-14 9:13 ` Hartmut Brandt [this message]
2013-01-14 8:08 ` John Santos
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox