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.24.130 with SMTP id u2mr9332013wif.6.1356971609875; Mon, 31 Dec 2012 08:33:29 -0800 (PST) Path: l12ni275575wiv.1!nntp.google.com!goblin1!goblin2!goblin.stu.neva.ru!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: Access to RSTS/E IOPAGE Registers Date: Mon, 31 Dec 2012 17:33:29 +0100 Organization: Update Computer Club Message-ID: References: <50dafa16$0$291$14726298@news.sunsite.dk> <50e0dd7c$0$281$14726298@news.sunsite.dk> <50e1b4b8.51590248@nntp.aioe.org> NNTP-Posting-Host: host-95-206-29-128.mobileonline.telia.com Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1356971609 4178 95.206.29.128 (31 Dec 2012 16:33:29 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Mon, 31 Dec 2012 16:33:29 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2012-12-31 17:23, Bob Eager wrote: > 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. Yes. >> 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. Right. However, that means accessing the I/O page through a device driver. If you are accessing registers that changes depending on execution, you might not be reading what you really are looking for. Johnny