From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: d180ab3bd8,5e74e0b23842db90 X-Google-Attributes: gidd180ab3bd8,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.86.166 with SMTP id q6mr2051285paz.44.1358654905203; Sat, 19 Jan 2013 20:08:25 -0800 (PST) Path: 6ni6204pbd.1!nntp.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nrc-news.nrc.ca!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: Wed, 16 Jan 2013 13:43:05 GMT Organization: Aioe.org NNTP Server Message-ID: <50f7aa02.51821644@nntp.aioe.org> References: <50e0dd7c$0$281$14726298@news.sunsite.dk> <50e1b4b8.51590248@nntp.aioe.org> <50e357ee.3109505@nntp.aioe.org> <50f2699f.912543@nntp.aioe.org> <50f3a15f.22274290@nntp.aioe.org> <50f5628f.137262066@nntp.aioe.org> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: yPe0Vz9rK3epnEf2vEo6yg.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 X-Received-Bytes: 4299 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Tue, 15 Jan 2013 22:10:19 +0100, Johnny Billquist wrote: >> Regarding FIP, the documentation includes the error message: >> >> ?FIP-F-FCS error code: n "error text" >> >> Which means that FIP is an RT-11 image running under RTEM which uses >> FCS. And that raises a question: how did they link an RT-11 image, >> presumably built by RT-11 LINK rather than RSX TKB, to the FCS >> routines? > >I can only guess, but I would have thought they have some interface >through RTEM to get to FCS. I can't see how you'd do it otherwise. You >can't really expect FCS code to work under RT-11, as it expects both >various data structures in various places, some of them fixed, as well >as the ability to do RSX system calls of all kind, which would not work >in RTEM. >However, having one or two "extra" system calls in RTEM, which in >reality gave access to FCS to anything running under RTEM seems pretty >straight forward. But, like I said, this is guessing... RSX system calls work under RTEM. The RSX SST system call (SVTK$) only passes non-RSX EMTs in the range 0:376 to tasks and still treats EMT 377 as an RSX system call. Indeed, RTEM itself is nothing more than RT-11 system code running in user space which catches RT-11 EMTs and implements them by issuing RSX EMT 377s. That's what the sketched RTX would do (and what Hartmut's code would have done). It's easier to work out what's happening by testing so I did some web scrounging. I couldn't find RTEM.TSK or FIP.SAV but I did manage to locate JOAT.SAV on a Russian site. I ran JOAT under the RUST/XM RSX emulator with system call trace active. You can see JOAT mix the RSX GTSK system call with RT-11 calls (all the rest, .readw etc). 1036 .readw chan=17 buf=26742 wcnt=4005 crtn=0 blk=45 27222 gtsk buf=10434 12402 .close chan=0 12442 .settop addr=36752 22162 .rctrlo ?JOAT-U-Wrong version of RTEM-11 22272 .exit r0=0 Setting a break on that GTSK$ call I could see that the return path includes a wrapper routine which restores the $DSW (location @#46), which was saved before GTSK$ was issued: 16544u 12637 pop @#46 | 16550u 13700 mov @#5206,r0 | 16554u 12710 mov #1656,(r0) | 16560u 207 return | The JOAT /M command, which passes a command to RSX-11M, has the following system call trace: 16402 gtsk buf=4170 16402 cli dic=255 siz=7 dpb=23166 dp0=23314 dp1=60 dp2=0 dp3=0 dp4=0 status dsw=177635 (sdp) 25610 qiow (det) fun=4 mod=0 lun=0 efn=0 pri=0 isb=1754 ast=0 p1=0 p2=0 p3=0 p4=0 p5=0 p6=0 status dsw=177640 (ilu) 22044 .scca addr=0 Most of the other commands fail because JOAT expects some pointer to be setup at @#250 (and another at @#252). All these calls involve device or file operations, so @#250 might have some kind of FCS linkage. Ian