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.92.202 with SMTP id co10mr1152927wib.1.1360941342576; Fri, 15 Feb 2013 07:15:42 -0800 (PST) Path: g1ni12720wig.0!nntp.google.com!goblin2!goblin.stu.neva.ru!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 15:15:40 GMT Organization: Aioe.org NNTP Server Message-ID: <511e442b.137696544@nntp.aioe.org> References: <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> <511e2731.130278790@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 Fri, 15 Feb 2013 14:08:48 +0100, Johnny Billquist wrote: >On 2013-02-15 13:34, paramucho wrote: > >> 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'm not sure I understand the problem. >So, you press a key. RSX generates an AST. You call the interrupt code >in RT-11. Is RT-11 assuming that this is a real interrupt? Ie., do RT-11 >return with an RTI? I would have thought you'd want to create an >interrupt stack frame before calling into RT-11 in that case. >Or are you stepping in at a higher level where the hardware interrupt >have already been dealt with, and it's just a call into somewhere? Still >seems weird if it don't do a return sooner or later? > >I must be missing something here. Yes, RT-11 (i.e. RUST/SJ) assumes its an interrupt, so I have to build an interrupt stack (PC, PS). However, I need to get rid of the AST stack frame first. To do that I move the AST frame down the stack to make space for the keyboard vector PC/PS. Then I execute ASTX$ which gets rid of the AST frame and enters the keyboard ISR. And that works (most of the time). The keyboard interrupt usually returns, but may abort if two ^C's are received. >> 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. > >Isn't that done at user level? I can't see how you could cause a crash >by that. Or did you poke in the internals of RSX to modify how ASTX$ works? Yes, its at user level and, no, there's no poking around. And yes, I shouldn't be able to cause a system crash in user mode. >You should search through RSX11M.MAP to find which module this is, and >where in that module. And then look at the code and figure out what is >going on. > >Also, if you get to XDT, what you could do is just to do a crash dump, >and then run the crash dump analyzer on the output after reboot, and >find out more details on what happened, and why. I can't find CDA on any of the RSX .DSK files I have here. I'll keep looking. Ian