Type ASSEMBLE
Source Lines : 118
Fixes Applied : 0
Most Recent Version : Thursday, December 7, 1978
Last Fix ID : [Unmodified]
Module
DMTPST
Function
THE DMTPST MODULE IS A SERVICE ROUTINE WHICH MAY BE CALLED FROM ANYWHERE IN THE RSS SYSTEM. DMTPST IS USED TO SIGNAL THE COMPLETION OF AN EVENT BY MEANS OF POSTING THE EVENT'S ASSOCIATED SYNCH LOCK. DMTPST IS ENTIRELY REENTRANT, USES NO MAIN STORAGE (EXCEPT THE SYNCH LOCK WHICH IS SPECIFIED TO BE POSTED), AND MAY BE ENTERED WITH PSW INTERRUPT MASKS ON OR OFF. DMTPST DOES NOT CHANGE THE STATE OF THE RUNNING PSW IN ANY WAY.
Attributes
REENTRANT
Operation
DMTPST POSTS THE SYNCH LOCK SPECIFIED IN THE CALL BY PLACING THE SPECIFIED ONE-BYTE CODE IN THE HIGH ORDER BYTE OF THE SYNCH LOCK (AND FORCING THE HIGH ORDER BIT OF THE SYNCH LOCK TO ONE). IF THE SPECIFIED SYNCH LOCK HAS BEEN WAITED ON (IF A TASK ELEMENT ADDRESS HAS BEEN SET IN THE SYNCH LOCK), THE WAITING TASK'S TASK ELEMENT ADDRESS IS LOADED FROM THE SYNCH LOCK AND THE "WAITING" BIT IN THE TASK TABLE IS SET TO ZERO. (THIS MAKES THE TASK DISPATCHABLE.) THE LOW ORDER THREE BYTES OF THE SYNCH LOCK ARE SET TO ZERO, AND CONTROL IS RETURNED DIRECTLY TO THE CALLER BY MEANS OF A BRANCH (CONTROL IS NOT PASSED TO THE DISPATCHER).
Calls to Other Routines
NONE