.NLIST TOC,SYM .TITLE $LCKPG .SBTTL ULBLIB 024 - Routines to Set/Clear Page Status Bits .IDENT \V01.00\ .PSECT .LIBC. .ENABL LC,GBL ; Copyright (c) 1998 by Mentec, Inc., Nashua, NH. ; All rights reserved ; ; This software is furnished under a license for use only on a ; single computer system and may be copied only with the ; inclusion of the above copyright notice. This software, or ; any other copies thereof, may not be provided or otherwise ; made available to any other person except for use on such ; system and to one who agrees to these license terms. Title ; to and ownership of the software shall at all times remain ; in Mentec, Inc. ; ; The information in this document is subject to change without ; notice and should not be construed as a commitment by Digital ; Equipment Corporation, or Mentec, Inc. ; ; Digital and Mentec assume no responsibility for the use or ; reliability of its software on equipment which is not supplied ; by Digital or Mentec, and listed in the Software Product ; Description. ;+ ; $LCKPG ; $UNLPG ; $WRMPG ; These routines set/clear the approriate bits in the page status byte ; ; R1 = virtual address ; ; CALL routine ; ; C-bit = 0 => page was marked as requested ; ; C-bit = 1 => page was not resident ;- $LCKPG:: JSR R2,$SAVVR ;Save volatile registers CALL $FNDPG ;Find specified page BCS 1$ ;If C-bit = 1, page not in memory INCB P$GLOK(R0) ;Increment lock count 1$: RETURN $UNLPG:: JSR R2,$SAVVR ;Save volatile registers CALL $FNDPG ;Find specified page BCS 1$ ;If C-bit = 1, page not in memory DECB P$GLOK(R0) ;Decrement lock count 1$: RETURN $WRMPG:: JSR R2,$SAVVR ;Save volatile registers CALL $FNDPG ;Find specified page BCS 1$ ;If C-bit = 1, not resident BISB #PG$WRT,P$GSTS(R0) ;Write-mark page 1$: RETURN .END