On 6/22/2015 10:48 PM, Elardus Engelbrecht wrote:
michelbutz wrote:

I always assumed SRB's run PSW key 0 supervisor state
No disrespect, but on what reason or environment is your assumption based?

This is IMHO a dangerous assumption, unless you know something the rest of us 
don't know.

SRB routines are *always* given control in supervisor state. In fact, they are not allowed to leave supervisor state.

An SRB's execution key is controlled by the SRBPKF setting in the SRB control block. If you didn't know about or have never set this field then, assuming you clear your 44-byte SRB control block to zeros before filling it in, your SRB will execute in key zero.

This is all fully documented. There is no need for assumptions.

--
Edward E Jaffe
Phoenix Software International, Inc
831 Parkview Drive North
El Segundo, CA 90245
http://www.phoenixsoftware.com/

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to