From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Thread: ffc31,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidf4c4f7386e,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.14.98 with SMTP id o2mr3933165wic.4.1358862767379; Tue, 22 Jan 2013 05:52:47 -0800 (PST) Path: o9ni13206wio.1!nntp.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!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, 22 Jan 2013 14:52:41 +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> <50f2699f.912543@nntp.aioe.org> <50f3a15f.22274290@nntp.aioe.org> <50f5628f.137262066@nntp.aioe.org> NNTP-Posting-Host: 74.125.57.33 Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1358862767 6462 74.125.57.33 (22 Jan 2013 13:52:47 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Tue, 22 Jan 2013 13:52:47 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2013-01-22 10:53, Hartmut Brandt wrote: > On Tue, 15 Jan 2013, paramucho wrote: > > p>On Mon, 14 Jan 2013 12:50:15 +0100, Johnny Billquist > p>wrote: > p> > p> > p> > p>>>> Quite possible they just save that location. I don't really know. > p>>>> As for FCS, they might just not use it... > p>>> > p>>> RTEM wouldn't use FCS, libraries or overlays. RTEM doesn't support > p>>> native RSX-11 file systems. All they need is logical I/O to volumes or > p>>> files formatted as RT-11 disks (except for the terminal etc.) > p>> > p>>Right, except there is a utility bundled with RTEM, called FIP, which > p>>gives you access to the outside RSX filesystem from RTEM. > p>>But it could potentially still do that without using FCS. Just more work... > p>>But for the rest of it, yes, RTEM only uses raw disks, and looking the > p>>disk files themself up is fairly trivial to do even without FCS. > p>> > p>>> The utility RTX that I'm sketching would access native RSX-11 file > p>>> systems and in fact probably wouldn't support RT-11 volumes ('cos both > p>>> would cost to much memory). > p>> > p>>Sounds similar to FIP.SAV > p> > p>It's more like the migration tool Hartmut describes, except RTX would > p>load an RT-11 image rather than being linked with the image > p>statically. > p> > p>Regarding FIP, the documentation includes the error message: > p> > p> ?FIP-F-FCS error code: n "error text" > p> > 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... What you describe is perfectly valid, Harti. However, you need to dig deeper. Once you have your RT-11 environment, then what? You will be able to run RT-11 programs. So you have MACRO-11 for RT-11, the LINKER, and all other tools just as any standard RT-11 environment have. You can then write additional RT-11 programs, even though this is actually an emulated RT-11 environment running under RSX. But let's now assume that you write a program under RT-11, which in fact would like to access files outside of the RT-11 environment, and actually read a file from the host RSX environment. This is the problem talked about. You could do this in atleast two ways. 1) Use the RSX EMT to do I/O. However, since most parts of file operations in RSX is done by a library and not by system calls, this means you need to get the whole RSX file I/O library ported over to RT-11, in order to use this properly. (And with "ported" I mean compiled, linked and put in a library, as well as getting all the macro definitions from RSX over.) 2) Create some new system calls, that your RT-11 program can use to read files from the RSX environment. Your emulator would then catch those calls as well, and do the appropriate work for you, and perform the I/O, though the RSX libraries, inside the emulator. Johnny