Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: paramucho@hotmail.com (paramucho)
Subject: Re: Access to RSTS/E IOPAGE Registers
Date: Wed, 16 Jan 2013 13:43:05 GMT	[thread overview]
Message-ID: <50f7aa02.51821644@nntp.aioe.org> (raw)
In-Reply-To: kd4gjs$5l3$1@Iltempo.Update.UU.SE

On Tue, 15 Jan 2013 22:10:19 +0100, Johnny Billquist <bqt@softjar.se>
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


  parent reply	other threads:[~2013-01-16 13:43 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-26 13:22 Access to RSTS/E IOPAGE Registers Jerome H. Fine
2012-12-26 15:35 ` Bill Gunshannon
2012-12-27  0:10   ` glen herrmannsfeldt
2012-12-27 21:13     ` Johnny Billquist
2012-12-27 21:25       ` glen herrmannsfeldt
2012-12-27 21:37         ` Johnny Billquist
2012-12-27 13:38   ` Jerome H. Fine
2012-12-27 21:16 ` Johnny Billquist
2012-12-28  6:32   ` paramucho
2012-12-28 15:01     ` Johnny Billquist
2012-12-30  2:04       ` paramucho
2012-12-30  3:25         ` Johnny Billquist
2012-12-30 18:25 ` jgharston
2012-12-30 21:44   ` Johnny Billquist
2012-12-31  0:34   ` Jerome H. Fine
2012-12-31  0:52     ` Johnny Billquist
2012-12-31 16:04     ` paramucho
2012-12-31 16:23       ` Bob Eager
2012-12-31 16:33         ` Johnny Billquist
2013-01-01  3:28         ` paramucho
2012-12-31 16:30       ` Johnny Billquist
2013-01-01  4:55         ` paramucho
2013-01-01 18:37           ` Johnny Billquist
2013-01-13  8:01             ` paramucho
2013-01-13 14:13               ` Johnny Billquist
2013-01-14  6:30                 ` paramucho
2013-01-14 11:50                   ` Johnny Billquist
2013-01-15 14:20                     ` paramucho
2013-01-15 21:10                       ` Johnny Billquist
2013-01-16  3:25                         ` Jerome H. Fine
2013-01-16  4:39                           ` Johnny Billquist
2013-01-16 13:43                         ` paramucho [this message]
2013-01-16 18:59                           ` Johnny Billquist
2013-01-17 11:56                             ` paramucho
2013-01-22  9:53                       ` Hartmut Brandt
2013-01-22 13:52                         ` Johnny Billquist
2013-01-23 14:11                           ` paramucho
2013-01-23 19:53                             ` Johnny Billquist
2013-01-25 13:43                               ` paramucho
2013-01-25 23:39                                 ` Johnny Billquist
2013-01-28  7:47                                   ` paramucho
2013-01-28 18:06                                     ` Johnny Billquist
2013-01-30 12:16                                       ` paramucho
2013-01-30 18:50                                         ` Johnny Billquist
2013-02-02 12:51                                           ` paramucho
2013-02-02 16:15                                             ` Johnny Billquist
2013-02-03 16:16                                               ` Jerome H. Fine
2013-02-04 12:03                                               ` paramucho
2013-02-04 16:58                                                 ` Johnny Billquist
2013-02-15 12:34                                                   ` paramucho
2013-02-15 13:08                                                     ` Johnny Billquist
2013-02-15 15:15                                                       ` paramucho
2013-02-15 16:04                                                         ` Johnny Billquist
2013-02-17 13:02                                                           ` paramucho
2013-02-17 13:43                                                             ` Johnny Billquist
2013-02-19 14:09                                                               ` paramucho
2013-02-20 11:18                                                                 ` paramucho
2013-02-21  0:23                                                                   ` Johnny Billquist
2013-02-21  0:22                                                                 ` Johnny Billquist
2013-02-24 14:10                                                                   ` paramucho
2013-02-24 15:00                                                                     ` Johnny Billquist
2013-03-06 15:33                                                                       ` paramucho
2013-03-06 23:51                                                                         ` Johnny Billquist
2013-03-20 10:15                                                                           ` paramucho
2013-03-20 13:01                                                                             ` Johnny Billquist
2013-03-20 21:42                                                                               ` Johnny Billquist
2013-04-14 16:48                                                                                 ` paramucho
2013-04-14 18:28                                                                                   ` Johnny Billquist
2013-04-15 10:30                                                                                     ` Johnny Billquist
2013-03-20 17:33                                                                             ` Jerome H. Fine
2013-03-25 15:55                                                                             ` paramucho
2013-03-06 15:33                                                                       ` paramucho
2013-02-24 14:12                                                                   ` paramucho
2013-01-23 14:10                         ` paramucho
2013-01-14  9:13                 ` Hartmut Brandt
2013-01-14  8:08 ` John Santos
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox