Re: Program Interrupts (signals)
If I must I must ... I will just have to use infinite monkeys!
By
adriansutherland67
·
#1070
·
|
Re: Program Interrupts (signals)
PrincOps. You can find it on bitsavers.. http://www.bitsavers.org/pdf/ibm/370/princops Joe adrian@...> wrote:
By
Joe Monk
·
#1069
·
|
Re: Program Interrupts (signals)
Dave, Thats my point. Just as fortran catches the divide by zero, so Adrian should have a C runtime that does the same thing, no? Joe
By
Joe Monk
·
#1068
·
|
Re: Program Interrupts (signals)
Have you a link ... I can't think what pops means!
By
adriansutherland67
·
#1067
·
|
Re: Program Interrupts (signals)
Considering a shared GCCLIB and BREXX, and thinking of a REXX program calling something like EXECIO also leveraging GCCLIB. Well I need a way to know that a program (say EXECIO) had bought a farm and
By
adriansutherland67
·
#1066
·
|
Re: Program Interrupts (signals)
Joe, Yes you can take control, but the question I would ask is do you want to? What are you going to do if a program does a divide by zero,. For example FORTRAN already catches divide by zero¡. So
By
Dave Wade
·
#1065
·
|
Re: Program Interrupts (signals)
The VM/370 System Programmers Guide, page 238: "The program interruption handler, DMSITP, receives control when a program interruption occurs. When DMSITP gets control, it stores the Program old PSW
By
Joe Monk
·
#1064
·
|
Re: Program Interrupts (signals)
That is exactly as Bob wrote. I've checked POPS for System/370 - on page 72 you have all serviceable exceptions wit old and new PSW what probably cover all cases. And this is as in Unix world - the
By
Piotr Kolasi¨½ski
·
#1063
·
|
Re: Program Interrupts (signals)
I don¡¯t think there is an issue with the OS interrupt handlers, the problem with OS macros is that if you are using OS storage the chains get cleaned at program termination time. Provided you are
By
Dave Wade
·
#1062
·
|
Re: Program Interrupts (signals)
STAE is an OS macro as well.?? I can't recall for sure but if memory serves this macro provides almost nothing in CMS.? I seem to recall it being a no-op. Bob
By
Bob Polmanter
·
#1061
·
|
Re: Program Interrupts (signals)
Adrian, Divide-by-zero does indeed cause a program check interruption 9.? If you are concerned about this possibility, mitigate it in your C code by checking the divisor first to see if it is zero.?
By
Bob Polmanter
·
#1060
·
|
Re: Program Interrupts (signals)
Can¡¯t we use STAE? Or is that also one of those ¡¯tainted¡¯ OS macro¡¯s?
By
[email protected]
·
#1059
·
|
Re: Program Interrupts (signals)
HNDINT handles i/o interruptions, not program checks. HNDEXT handles external interruptions. There is not one for program checks except SPIE, which is OS simulation. Regards, Bob
By
Bob Polmanter
·
#1058
·
|
Re: Program Interrupts (signals)
I can think of a few ways you can intercept and handle program interruptions, but they all point to the same answer that I don't think you will like:? use assembler. You could use the SPIE macro to
By
Bob Polmanter
·
#1057
·
|
Re: Program Interrupts (signals)
I suggest reading the CMS program logic manuals¡ ¡ I think we are limited to SPIE & HDNINT ¡ CP is not really involved. It reflects interupts Dave Sent: 21 April 2020 20:22 To: [email protected]
By
Dave Wade
·
#1056
·
|
Re: Program Interrupts (signals)
Also I considered a interrupt handler but 1/ am not certain if div by zero etc. cause interrupts 2/ i did not see any way to determine the interrupt details (but I assume I would eventually) 3/
By
adriansutherland67
·
#1055
·
|
Re: Program Interrupts (signals)
I was wondering if using os macros would be feasible / acceptable? Also I noticed I can use a CMS macro to intercept SVC calls ... so does the os emulator really fire SVC 13? Is this part of an
By
adriansutherland67
·
#1054
·
|
Re: Program Interrupts (signals)
So any ideas welcome :-)
By
adriansutherland67
·
#1053
·
|
Re: Program Interrupts (signals)
CMS I think. Obviously I can handle (fake) "abends", for example if a program calls abort(). The problem is situations when the program "encounters" an abend. E.g. if the program divides by zero,
By
adriansutherland67
·
#1052
·
|
Re: Program Interrupts (signals)
I may be wrong but it is virtual machine and trapping program interrupts is taken be emulation layer and serviced by routine with address defined in 4 kB area (PSA)? I dont have POPS 370 here. Piotr
By
Piotr Kolasi¨½ski
·
#1051
·
|