From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Thread: ffc31,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidf4c4f7386e,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.109.162 with SMTP id ht2mr10846686wib.1.1356971011049; Mon, 31 Dec 2012 08:23:31 -0800 (PST) Path: i11ni342640wiw.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bob Eager Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: Access to RSTS/E IOPAGE Registers Date: 31 Dec 2012 16:23:30 GMT Message-ID: References: <50dafa16$0$291$14726298@news.sunsite.dk> <50e0dd7c$0$281$14726298@news.sunsite.dk> <50e1b4b8.51590248@nntp.aioe.org> Mime-Version: 1.0 X-Trace: individual.net 9EcO6AX/PC6sKFZnjf2s9gBYZXz4m95AL3RvOA0BzjJ9L9AWeoY8gRrZc9ndCeuNVu Cancel-Lock: sha1:PaWFCnlqTSryIs7nWtMxiqd3owY= User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Mon, 31 Dec 2012 16:04:42 +0000, paramucho wrote: > 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 original idea was that the 407 was a branch instruction that skipp3ed the header, allowing standalone programs to be started at the first instruction of the image. > 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. UNIX would no longer recognise the image as executable. > On the other hand, there's no reason not to use separate images. Much easier. > 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. It does provide access for the super-user, and for any privileged program. One simply sets the programs as 'set user-id' with the root user. Then it can access the file /dev/mem, which of course includes the I/O page AFAIR. -- Use the BIG mirror service in the UK: http://www.mirrorservice.org *lightning surge protection* - a w_tom conductor