In a message dated 7/24/2007 1:33:11 A.M. Central Daylight Time,  
[EMAIL PROTECTED] writes:
>I have a need to determine if an address in storage is page  protected
in order to determine if a PGSER UNPROTECT needs to be  done.
 
One way, not necessarily the most elegant, is to establish an ESTAE or FRR,  
put your program into key 0, and do an OI into any byte in the page with an  
operand of X'00'.  This instruction will not change the byte being  accessed, 
but if the page is page protected your OI will produce a S0C4 which  you trap 
and from which you recover in your recovery routine.  If the page  is not page 
protected, the next instruction after the OI will execute.
 
Bill  Fairchild
Plainfield, IL





************************************** Get a sneak peek of the all-new AOL at 
http://discover.aol.com/memed/aolcom30tour

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to