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.137 with SMTP id p9mr152157paz.37.1358950245160; Wed, 23 Jan 2013 06:10:45 -0800 (PST) Path: 6ni13368pbd.1!nntp.google.com!news.glorb.com!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, 23 Jan 2013 14:10:42 GMT Organization: Aioe.org NNTP Server Message-ID: <5102ed34.658809569@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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Tue, 22 Jan 2013 10:53:29 +0100, Hartmut Brandt wrote: >p>Which means that FIP is an RT-11 image running under RTEM which uses >p>FCS. And that raises a question: how did they link an RT-11 image, >p>presumably built by RT-11 LINK rather than RSX TKB, to the FCS >p>routines? > >Maybe I don't understand the question correctly, but here is what I did: >you set up to catch all the EMTs (there is an RSX directive to do that). >That actually gives you only EMTs up to 376. 377 will be routed to RSX >anyway. Then you translate all the file-related EMTs from their RT >semantics to RSX semantics and do the right calls into FCS. Given that >there is no 1:1 relation between RT and FCS file operations this is >sometimes tricky, but in my case (getting a compiler to run) it was mostly >straightforward. > >So, in your RSX RT-emulator you set up everything, read the RT-11 program >into the right spot in memory (you must link the RSX program in a way that >the addresses usually occupied by RT programs are free) and just execute >it. As the RT program is calling its system by executing EMTs the emulator >will get them, translate them and do the right things (hopefully). This >works, of course, only with RT programs that don't try to reach into the >operating system directly... That's right. I wrote an RT-11 "AME" (Application Migration Executive) for VAX/VMS, similar to the RSX AME, which worked that way. After the image is loaded it's just a matter of translating system calls, and that's quite easy to do for *most* programs and *most* calls. The tricky bit, for RT-11 to RSX or VMS, is not the translation of the system call interface but rather the file systems. Many RT-11 programs rely on RT-11's tentative file behaviour where a new file does not appear in a directory until the file is closed. A full translation of all the details of the RT-11 file system to RSX or VMS requires much more code than the O/S interface. Programs like the RT-11 linker use the RT-11 .SAVESTATUS/.REOPEN heavily to access files. That can require caching channel information to fully resolve. I first wrote software to solve these problems for a transparent network that allowed RT-11 or RUST uses to treat remote VMS (or RUST) devices as if they were local. More recently I redid interfaces to support RUST to Windows file system translation which I use for the RUST network and Windows emulator. C programs have a fairly well-defined work flow which translates fairly easily to most systems (although that's not true for the original Unix applications where many have there own unique tricks when creating and working with temporary files). Ian