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.68.138.165 with SMTP id qr5mr9129883pbb.8.1363060952367; Mon, 11 Mar 2013 21:02:32 -0700 (PDT) Path: q9ni11986pba.1!nntp.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!backlog1.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!cs.uu.nl!news.stack.nl!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: Thu, 07 Mar 2013 00:51:26 +0100 Organization: Update Computer Club Message-ID: References: <510fa014.171203983@nntp.aioe.org> <511e2731.130278790@nntp.aioe.org> <511e442b.137696544@nntp.aioe.org> <5120d34f.47638789@nntp.aioe.org> <512385cb.224392072@nntp.aioe.org> <512a1f3b.52491122@nntp.aioe.org> <51375fe9.58270507@nntp.aioe.org> NNTP-Posting-Host: 178-83-31-172.dynamic.hispeed.ch Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1362613887 17536 178.83.31.172 (6 Mar 2013 23:51:27 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Wed, 6 Mar 2013 23:51:27 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130216 Thunderbird/17.0.3 In-Reply-To: <51375fe9.58270507@nntp.aioe.org> X-Original-Bytes: 7637 X-Received-Bytes: 7800 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2013-03-06 16:33, paramucho wrote: > On Sun, 24 Feb 2013 16:00:16 +0100, Johnny Billquist > wrote: > >>> That said, I note that RTEM.TSK resides in [1,54], probably because >>> it's considered a system program rather than an app. >> >> Uh? RTEM.TSK don't need to be anywhere in particular. I have it in >> LB:[RTEM] on my system... >> What made you think it must be in [1,54]? > > That's not what I said, but I did forget to mention the source: it's > the RTEM documentation kit that describes RTEM.TSK as residing in > [1,54]. The installation procedure describes the copy operation as > follows (page 2.5): > > PIP DR0:[1,54]RTEM.TSK/...=DL1:[277,54]RTEM.TSK > > An earlier section states the locations as follows (page 1.1). > ("sysuic" is not detailed). > > RTEM.TSK LB:[sysuic] > RT11SH.SYS LB:[1,1] Oh! Ah. Yes... The reason for that is probably because RTEM was only ever intended for (or maybe even officially supported) on 11M, where system programs always sits in [1,54]. But that is just a convention. You can have the binary anywhere and it works just as well. And if you install it, you will not even be aware of where the binary actually resides in the file system. To be even more clear: SYSUIC is an actual value in RSX. On a mapped 11M system, it is normally [1,54], but under some circumstances it might be something else. RT11SH.SYS on the other hand is by default expected to be found in LB:[1,1]. The moving of system independent tasks only came about in M+. Before that there was only SYSUIC, and everything was expected to sit there. >>>>> Is there a way for a task to determine whether a particular >>>>> device/unit has been mounted, and if so as a FILES11 volume or as a >>>>> foreign device and whether the task has access to the volume? >>>> >>>> GLUN$ gives you parts of the information, but is not really good enough >>>> for that purpose. What you need is GIN$, and the GI.DEV subfunction. But >>>> I think that is M+ only. >>> >>> I guess I could probe all known disks with ALUN$ and various QIOs and >>> look for error messages. >> >> Yuck! GLUN$ is atleast better than that. > > GLUN$ would be included in the party. Throw everything at the system > and see if it falls over and whether it can get back up again :-) :-) >>> I noticed that the F11A ACP doesn't support a RENAME operation >>> directly but that applications have to DELETE the old name and then >>> ENTER a new name, attaching the existing FID to the new name. What >>> happens if the application aborts after the DELETE but before the >>> ENTER? Does the FID become an orphan? >> >> Yes. Or you'd rather say that it comes a lost file. VFY can locate and >> recover such files. >> >> However, why remove the old one before entering the new one? >> Add the new one first, and then remove the old one. Better from a >> recovery point of view. > > I'm reporting what PIP actually does, and PIP does the delete first. Ok. But either way will work. > Likewise, the RSX documentation (IO Operations Manual, ACP appendix) > says to delete then enter. Perhaps it has something to do with the > identification area of the file header (i.e. I.FNAM and I.FTYP). No. There is nothing in there that are affected. A rename don't even touch the file header. It's just a question of adding/removing entries in the directory. (This implies a problem in the RSX system, however. There is no information in a file about which directory it was expected to sit in, so if it gets lost, VFY can not properly recover, but instead places all lost and found files in [1,3]. VMS did add a backpointer in the file header for ODS-2, if I remember right.) > Here's a V11 trace of a PIP rename (with some ALUNs/GLUNs deleted) > > DCL> rename g.g h.h > 26456u 326 alun lun=4 dev=[SY] > 20426u 15370 qiow fun=11=(fna) lun=4 efn=40 isb=15420 > p1=0 p2=0 p3=0 p4=0 p5=0 p6=1514 > nam=[DL0:001054.DIR] fid=0/0 did=4/4 > 26456u 334 alun lun=3 dev=[DL] > 20426u 15370 qiow fun=11=(fna) lun=3 efn=40 isb=15420 > p1=0 p2=0 p3=0 p4=0 p5=0 p6=1654 > nam=[DL0:G.G] fid=0/0 did=22/1 > 20426u 15370 qiow fun=13=(rna) lun=3 efn=40 isb=15420 > p1=0 p2=0 p3=0 p4=0 p5=0 p6=1654 > nam=[DL0:G.G] fid=607/11 did=22/1 > 26456u 346 alun lun=4 dev=[DL] > 20426u 15370 qiow fun=14=(ena) lun=4 efn=40 isb=15420 > p1=0 p2=0 p3=0 p4=0 p5=0 p6=1514 > nam=[DL0:H.H] fid=607/11 did=22/1 Pretty straight forward... > I'm getting a bit more skilled with RSX so I managed to find the > location of the intermittent crash. It's the CRASH at 100$ in > CORAL.MAC, which points to a corruption of the dynamic memory > structures detected during DEAC1. I'll put a breakpoint at the > location to see if I can get more detail. It seems only to happen when > I use KEYPAD.SAV (a KED replacement) in RTX. There is no access to RSX > disks, so I think it must be tied to the terminal, or perhaps ASTs in > general. Most likely it's actually a call to $DEACB, and not $DEAC1. But anyway... I seem to remember that there might be an issue if you are sending characters at a very high rate into RSX. The terminal device driver do not handle that correctly, but it's not something ever noted by DEC, since you can't physically produce characters at such rate on real hardware. But it has been noted in simulators... Typically things like function keys, which sends several characters are the thing that trigger it. Could it be something related to that? Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: bqt@softjar.se || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol