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.100.74 with SMTP id ew10mr9577249wib.7.1357016129564; Mon, 31 Dec 2012 20:55:29 -0800 (PST) Path: i11ni344757wiw.0!nntp.google.com!goblin1!goblin2!goblin.stu.neva.ru!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: Tue, 01 Jan 2013 04:55:26 GMT Organization: Aioe.org NNTP Server Message-ID: <50e357ee.3109505@nntp.aioe.org> References: <50dafa16$0$291$14726298@news.sunsite.dk> <50e0dd7c$0$281$14726298@news.sunsite.dk> <50e1b4b8.51590248@nntp.aioe.org> 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 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. >> 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. That wouldn't be necessary, so not a problem. >> 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. Ian