From: sword7@speakeasy.org
Subject: Re: TS10 - Successful but some PROBE problems.
Date: Fri, 15 Feb 2002 05:01:19 -0000 [thread overview]
Message-ID: <u6p5gvqejqhk3b@corp.supernews.com> (raw)
In-Reply-To: 1020214201523.19306A-100000@Ives.egh.com
In comp.sys.dec John Santos <JOHN@egh.com> wrote:
> This matches my 1981 VAX Arch Handbook... Are you setting a temp
> value to the max (requested mode, previous mode) or are you setting
> the mode arg of the PROBE instruction? If you change the instruction's
> arg, I can easily see things breaking. (For example, same code is checking
> accessibility of a buffer from the caller's mode. Sometime the caller
> is user mode (prev_mode=3) and sometimes it's kernel (prev_mode=0), so
> the 1st call from user mode modifies the arg to a "3" and it stays
> there forever, thus producing spurious errors when prev_mode is kernel.
Well, manual said that PROBE instructions use previous mode to maxize mode
(least privilege). Yes, I set temp value to test them on my emulator.
I now uncommented two lines in emulated PROBE instruction. Yes,
I made some tests to trying find a bug.
If I set transmit delay to 200, I noticed that CHMK #32 transmitted
a first character to the console terminal and quickly exited with
result code #8001 before an interrupt occured from TXCS tell TXDB is
ready to receive another character. When all terminal stream is
finished, it tried to return results but it ended up PROBE test failure
and returned with #040C error code during AST delivered (IPL 2). PROBE
tried probe (access test) executive stack with previous mode (supervisor)!
That is much difficult to debug it. :-(
> The first edition (what year? mine doesn't say what edition it is, just
> "1981" on the spine) doesn't have the self-relative queue instructions,
> and who knows what else. I can't imaging VMS working with out them,
> though.
My first edition is "1987" that have information about queue instrctions
but not much.
> The current Macro-32 assembler manual (VAX Macro and Instuction Set
> Reference Manual) is included in the online DOCS and should be at
> the Compaq doc site:
Yes, I am aware of that.
-- Tim Stark
--
Timothy Stark <>< Inet: sword7@speakeasy.org
--------------------------------------------------------------------------
"For God so loved the world, that he gave his only begotten Son, that
whosoever believeth in him should not perish, but have everlasting life.
Amen." -- John 3:16 (King James Version Bible)
next prev parent reply other threads:[~2002-02-15 5:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-14 19:27 TS10 - Successful but some PROBE problems sword7
2002-02-15 1:36 ` John Santos
2002-02-15 5:01 ` sword7 [this message]
2002-02-22 1:47 ` Zane H. Healy
2002-02-22 4:10 ` sword7
2002-02-23 18:33 ` Zane H. Healy
2002-02-23 22:58 ` sword7
2002-02-24 3:37 ` Sam Weiner
2002-02-24 9:54 ` jmfbahciv
2002-02-25 1:58 ` Zane H. Healy
-- strict thread matches above, loose matches on Subject: below --
2002-02-25 16:57 nospam
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