Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Johnny Billquist <bqt@softjar.se>
Subject: Re: Access to RSTS/E IOPAGE Registers
Date: Fri, 15 Feb 2013 14:08:48 +0100	[thread overview]
Message-ID: <kflc10$ke6$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <511e2731.130278790@nntp.aioe.org>

On 2013-02-15 13:34, paramucho wrote:
> On Mon, 04 Feb 2013 17:58:12 +0100, Johnny Billquist <bqt@softjar.se>
> wrote:
> <SNIP>
>
>>> 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'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.

> 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.

Cool.

> 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?

> 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 |

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.

> 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!

Of course. :-)
The vector is a virtual address in your address space. Change the 
mapping, and your pointer will point at something else. If it instead 
were to store a physical address, your program would have to be locked 
into memory, since any swapping might change your physical addresses...

	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


  reply	other threads:[~2013-02-15 13:08 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
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 [this message]
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