From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Attributes: gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.91.114 with SMTP id cd18mr10891496wib.2.1356969886456; Mon, 31 Dec 2012 08:04:46 -0800 (PST) Path: l12ni275543wiv.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!195.96.0.7.MISMATCH!newsfeed.utanet.at!newsfeed.tele2net.at!aioe.org!.POSTED!not-for-mail From: paramucho@hotmail.com (paramucho) Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: Access to RSTS/E IOPAGE Registers Date: Mon, 31 Dec 2012 16:04:42 GMT Organization: Aioe.org NNTP Server Message-ID: <50e1b4b8.51590248@nntp.aioe.org> References: <50dafa16$0$291$14726298@news.sunsite.dk> <50e0dd7c$0$281$14726298@news.sunsite.dk> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: CmgvwL3sOlojnxUjt8znzA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 1.5/32.451 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Sun, 30 Dec 2012 19:34:19 -0500, "Jerome H. Fine" 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. 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 (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.) 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. 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. On the other hand, there's no reason not to use separate images. 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. 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. 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. Ian