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.66.86.137 with SMTP id p9mr6065722paz.37.1357065425777; Tue, 01 Jan 2013 10:37:05 -0800 (PST) Path: 6ni76281pbd.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.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: Tue, 01 Jan 2013 19:37:04 +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> <50e357ee.3109505@nntp.aioe.org> NNTP-Posting-Host: host-95-195-71-52.mobileonline.telia.com Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1357065425 22944 95.195.71.52 (1 Jan 2013 18:37:05 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Tue, 1 Jan 2013 18:37:05 +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: <50e357ee.3109505@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2013-01-01 05:55, paramucho wrote: > On Mon, 31 Dec 2012 17:30:59 +0100, Johnny Billquist > 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. >> >> 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.) > > The program would have different entry points for RT-11 and Unix, so > it can easily determine which system it's running under. It would then > use the appropriate system calls. Unix uses TRAP rather than EMT for > system calls. Hmm. I guess that could theoretically work. It would take some more serious analysis to see if an RT-11 image header could co-exist with a Unix one. Not something I'm going to dig into. I suspect that RSX and Unix image headers are not mergable. But I haven't looked at that either. >>> 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. > > Alas, I haven't been able to locate any decent RTEM documentation > on-line. Me neither. But I can run programs to test things. :-) Except I don't know RT-11... Johnny