From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,5e74e0b23842db90 X-Google-NewGroupId: yes X-Google-Attributes: gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.93.230 with SMTP id cx6mr376634wib.5.1360931674238; Fri, 15 Feb 2013 04:34:34 -0800 (PST) Path: g1ni12500wig.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!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: Fri, 15 Feb 2013 12:34:32 GMT Organization: Aioe.org NNTP Server Message-ID: <511e2731.130278790@nntp.aioe.org> References: <5103ed41.658822127@nntp.aioe.org> <51028a73.830126357@nntp.aioe.org> <51062c31.1068125772@nntp.aioe.org> <51090db1.102143963@nntp.aioe.org> <510d05c3.633956@nntp.aioe.org> <510fa014.171203983@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 Mon, 04 Feb 2013 17:58:12 +0100, Johnny Billquist wrote: >> I had a more detailed look today. All accesses to the PSW in the RTEM >> conditional assembly of the RT-11 monitor are converted to calls to >> special RTEM routines. I guess it's those routines which manage ASTs. > >Ah. You meant that way. >Yes, inasmuch the flow of execution can be interrupted, you need a way >to block it in some places. >I guess timers would be a typical example of this, as you probably can't >accept timers to trigger at any random point in the code. > >Blocking ASTs in RTEM would probably be what you want/need to do instead >of raising the IPL. In fact, it turns out that it's necessary to get rid of an AST which emulates an interrupt (for example the keyboard) with ASTX$ before the "interrupt" code executes. That's because there's no guarantee that the "interrupt" code will return along the path which issues an ASTX$. It's a matter of rebuilding the AST stack. I got a development version of RTX.TSK working this week. Very little code required. At present it has pretty much everything done except for the driver which talks to the RSX file system. For the development phase I'm using a little driver which hooks up to V11 to access native Windows directories independently of RSX. The only problem I have at present is that every so often I enter XDT with an unidentified CRASH. I've searched through all the RSX media I have but I can't find the source of the CRASH. It always occurs when I'm typing characters--in fact, the keyboard is the only asynchronous event at present. The crash is intermittent. It might have something to do with my ASTX$ trickery. 13214k 10200 mov r2,r0 | 13216k 10160 mov r1,2(r0) | 13222k 22726 cmp #11114,(sp)+ | 13226k 1007 bne 13246 | 13230k 26767 cmp 11206,11212 | 13236k 101403 blos 13246 | 13240k 12702 mov #401,r2 | 13244k 404 br 13256 | 13246k 207 return | 13250k 5703 tst r3 | 13252k 1745 beq 13166 | 13254k 4 iot | ; XDT CRASH 13256k 130267 bitb r2,11210 | 13262k 1021 bne 13326 | 13264k 150267 bisb r2,11210 | 13270k 105002 clrb r2 | 13272k 30267 bit r2,11210 | 13276k 1013 bne 13326 | 13300k 10046 psh r0 | 13302k 16700 mov 11204,r0 | 13306k 1406 beq 13324 | 13310k 10146 psh r1 | It could be something really stupid because I know so little about RSX. For example, it took me a day to realize that the vector table specified by SVTK$ had to remain mapped after the directive! Ian