This particular program interrupt does not lead to a dump. It is "working as designed" - the CS instruction is issued by an IBM module to test if a certain address is valid or not. If there is a program interrupt, MVS knows the address in question is not "valid" - and goes on with its merry business. It never bothers to write an SVC dump in this case
I dont see anything about R6 or R1 that would be an issue? R6 =9BCD10, R1=FE3E30...
?
Joe
?
On Wed, Oct 26, 2022 at 7:06 AM Joe Monk via <joemonk64=[email protected]> wrote:
Dave,
?
Compare_and_swap is a non-privileged instruction.? But he's getting a protection exception. Now how is that possible?
?
If we look at his PSW ... 078D2000000383EC?
?
DAT is controlled by bit 5 in a EC mode PSW. He's got a 7 in the second nibble, so the DAT bit is on. Thus, DAT is on.? So, with DAT on, how is he getting a protection exception?
?
Compare and swap is two registers and a memory location. Nothing requiring a supervisor?key...
?
Joe
?
On Wed, Oct 26, 2022 at 6:27 AM Dave Wade <dave.g4ugm@...> wrote:
"Some?instructions are?valid?either?in the?370-XA mode?or in the System/370?mode,?but not in both modes.?If instruction?interception?is either?mandatory or conditional in?the?mode?in which the instruction?is valid,?then?it?is?undefined whether?instruction interception?is?recognized unconditionally or?an?operation exception?is?recognized in the invalid?mode.
When?code?04?is?stored, guest?instruction?execution?is?suppressed, except for the?COMPARE AND?SWAP,?COMPARE?DOUBLE?AND?SWAP,?and?TEST?AND?SET?instructions?(which are completed)."
page 11
Note that his code 4 is occurring on a compare_and_swap ...
?
Joe
?
?
?
On Tue, Oct 25, 2022 at 11:29 PM Fish Fish <david.b.trout@...> wrote:
Jim Snellen wrote:
> I am running VM/370 with DOS/VS as a guest machine and > MVS 3.8J TK4- as a guest machine.? I use HercGUI
Which should not make any difference.
> and Hercules version 4.4.1.10647-SDL-gd0ccfbc9.? I've recently > noticed that a recurring display occurs: > > HHC02324I PSW=078D2000000383EC INST=BA661000 CS 6,6,0(1) compare_and_swap > HHC02326I V:00FE3E30:R:00000000007E3E30:K:06=009BCD10 809BCF98 ... [...] > HHC00801I Processor CP00: Protection exception code 0004 ilc 4
[...] > Am I doing something wrong to cause this?? It looks like > these messages are going to the log file and there's a lot > of these!
They *appear* to be legitimate errors, as in whatever you're running in/on your guest is not doing something correctly (i.e. something is malfunctioning, i.e. some piece of software you're running is buggy).
According to the PSW, the program is running in Problem State with PSW Key 8 (the "8D" in your PSW), but the storage the 'CS' (Compare and Swap) instruction is trying to access is Key 0 (the '0' in "K:06"), which by my calculations would indeed cause a bona fide Protection Exception Program Interrupt.
<shrug>
Check your code. I suspect it's buggy.
-- "Fish" (David B. Trout) Software Development Laboratories