From: Johnny Billquist <bqt@softjar.se>
Subject: Re: Access to RSTS/E IOPAGE Registers
Date: Mon, 31 Dec 2012 17:30:59 +0100 [thread overview]
Message-ID: <kbsek4$42f$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <50e1b4b8.51590248@nntp.aioe.org>
On 2012-12-31 17:04, paramucho wrote:
> On Sun, 30 Dec 2012 19:34:19 -0500, "Jerome H. Fine"
> <everyone@nospam.com> wrote:
>
>
>>
>> All of RT-11, TSX-Plus and RUST support these two requirements.
>> If UNIX can also run a file which runs under RT-11, it would
>> be possible to include the extra code needed for UNIX as well.
>> Can you provide details? RT-11 uses words 40 to 50 in block
>> zero of the executable file to inform the loader where to start
>> the program, the location of the stack and the required memory.
>> The program starts at location 1000 in block one. If there is
>> sufficient compatibility between RT-11 and UNIX on how a
>> program is loaded and started, then it should be possible to
>> test under UNIX as well if access the the IOAGE registers
>> is possible.
>
> What is being asked is whether an RT-11 program and a Unix program can
> co-exist in the same file image, with the understanding that the RT-11
> code in the image would use RT-11 EMTs and the Unix code would use
> Unix system calls.
I thought the question was about running the RT-11 program on Unix...
The actual layout is like a follow-on issue to that question.
It might be that you could create a binary that could load and run on
both systems, but with different bits that was the executable. I don't
know. Seems like it would become very complex to say the least.
How would you make the RT-11 use one set of EMTs, and the Unix code
another set (I don't even think Unix uses the EMT for system calls.)
> In fact, RT-11 and Ancient Unix programs probably can co-exist. A Unix
> program begins with an 8-word header consisting of something like
> this:
>
> 00: .word magic number
> 02: .word code size
> 04: .word data size
> 06: .word heap size
> 10: .word symbols?
> 12: .word start address
> 14: .word unused
> 16: .word relflg
>
> where the magic number is:
>
> 407 vanilla
> 410 read-only code
> 411 I/D separation
> 405 overlaid
[...]
Note that the magic number is actually a branch instruction around the
rest of the header. ;-)
Which also tells you that the header isn't necessarily 8 words.
> (I got this data from a Unix emulator I sketched out for
> RUST/XM, and my memory is a bit scratchy, so no guarantees and
> I don't remember which version I used as a model.)
It's all documented inside Unix, if someone really wants to know.
Probably even in the man-pages of 2.11BSD... I can check later, if
someone really wants details.
> The one possible collision with an RT-11 image is the first location.
> RT-11 flags some images as "VIRTUAL" by placing rad50 "VIR" in
> location zero. I don't see a problem.
Except of course, if the first located holds R50("VIR"), then Unix will
totally refuse to run it.
> By the way, co-existing images are common in RT-11. Some device
> drivers also be run as standard utility programs (to handle setup etc,
> e.g. LD:). The RUST general purpose boot utility BOOT.SAV can be
> treated as a standard RT-11 program or as a bootable image.
That's different than in RSX, for example.
> On the other hand, there's no reason not to use separate images.
Right.
> All that said, as has been pointed out, Ancient Unix was a timeshare
> system, not a real-time system, and does not provide access to the I/O
> page, so the current tests which require I/O page access are not
> available.
Correct.
> However, it occurs to me that it's probably possible to use relative
> instruction times as signatures for a given CPU or emulator. All that
> is required for that kind of test is a mark time (equivalent) system
> call. In a multi-process system and on emulators you'd need iron out
> differences caused by scheduling, but that could be handled by
> rerunning the tests until a stable result was required.
Except a good emulator should give the same timings... :-)
> 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.
Johnny
next prev parent reply other threads:[~2012-12-31 16:30 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 [this message]
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
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