0 MODIFICATIONS TO RSX11D V6.2 FOR INDIVIDUAL SY: DEVICE 20-May-77 Larry Simpson and Frank Borger Michael Reese Medical Center 1 EXEC MODIFICATION FOR PAGE 2 INDIVIDUAL SY: DEVICE 20-May-77 I. Overview Changes have been made in the RSX-11D V6.2 executive and associ- ated programs to enable each account to have its own default dev- ice. This is needed especially if the system device is an RK05, which does not allow much room for user files. The system inter- action is made easier, and less errors are made which leave unwanted files on the system device (DK0:). Command files can now be independent of which disk the user is on. One module in the EXEC proper and SCOM were patched, two system programs were changed and a new one was added to accomplish the change. In addition MACRO, QUE, PIP and TKB had to be patched to run correctly in the new system. II. Executive modifications: The modification is enabled by redirecting SY: to itself, (and disabled by redirecting SY: to the actual system disk.) When SY: is redirected to itself, and a QIO or GLI directive is issued for the SY: device, the PUD pointer for the actual device is obtained from a location in the task header. Offset location 142 in the task header is used (now indicated as spare). This location is filled in on the first such request from the task from the TI PUD for the task (U.LBH offset). The TI in turn is initialized by the HELLO program at sign-on time from the directory on the de- fault system device (SD0:). This (new) pseudo device should be included in the SYSGEN. SD: serves the same function as SY: does for a standard system, and should be redirected to whichever dev- ice is the system device. The specific modifications to the EXEC are in two of its modules: SCOM and DMGLI. The modifications perform the redirecting for SY: and set up the task header with the appropriate SY: device. In addition, location .MCRPW in SCOM is patched to contain the address of the SY: PUD entry and .MCRPW+2 is set to the default system device PUD entry (e.g. DK0:). The modifications are made by a program TESTPAT which makes all of the EXEC changes except the ones to DMGLI. Any PUD which can be used as a TI device by a task, and is not a terminal which can be logged on, must have U.LBH in its PUD ini- tialized via an OPE patch. (e.g. BP, CI, CL etc.) TESTPAT now has a table of devices for which it does this initialization. III. Program changes and additions: A. HELLO operates as before, the change being transparent to the user. At log-on time the SY: for the terminal is read from the directory on the default SY: device (SD:) and the PUD pointer placed in U.LBH of the PUD of the terminal. B. PWD now displays the old password and asks for a new one. Then it displays the old SY: device and asks for a new one. A in response to either question leaves the old option intact. The device is stored as an ASCII string in two words immediately preceding the password in the user's di- 1 EXEC MODIFICATION FOR PAGE 3 INDIVIDUAL SY: DEVICE 20-May-77 rectory header. C. SDV is a new program which allows a user to set his SY: dev- ice to other than that set by HELLO. It does not change the device which will be used by HELLO in the future. That is done by PWD. D. The executive change is made by running a program (TESTPAT) which modifies some code in SCOMM and fills in selected PUDs (from a table in the program) with initial default device PUD (location U.LBH) addresses. The code in SCOMM which is modified is the routine ..URAL immediately following the ..REDT (redirect) routine which does something with UNIBUS mapping (relevant only on PDP-11/70s). Therefore this patch is not advised for 11/70 systems with extended memory. Location .MCRPW contains the PUD address for SY and .MCRPW+2 contains the address of the PUD for the default system dev- ice (e.g. DP:). In addition, the EXEC proper must be modified via OPEN. Offset 30 octal into the EXEC module DMGLI and overwrite the code with the following three octal values: 4737, 156342 and 407. The equivalent MACRO code is: JSR PC,@#..REDT BR .+20 For the current EXEC this is: 25600/132765 4737 25602/000040 156342 25604/000003 407 This modification forces DMGLI (Get Lun Info) to use the SCOMM routine ..REDT instead of its own redirect code which appears to be left over from some internal debugging work. IV. Other Program Changes MACRO, QUE, PIP and TKB expect certain files to be on the SY: device. They must be patched to operate properly. A. MACRO: 1. From a map, locate contribution to PSECT from MLIBS.OBJ. 2. Using ZAP offset 32 (octal) into this PSECT and find the ASCII for SY (=54523). In MAC this is 46:43472 and in PURMAC it is 3:21660 3. Clear this location. 4. REA ...MAC 6 SD: (or other device where the MACRO libra- ry resides) 5. The device for the MACRO library can be changed in the future with REA. B. QUE: 1. From a map locate PSECT . 20,000 in pure code ar- ea. 2. Using ZAP offset 32 (octal) into this PSECT (20032) and find ASCII for SY (=54523). 3. Clear this location. 4. REA ...QUE 2 SD: 1 EXEC MODIFICATION FOR PAGE 4 INDIVIDUAL SY: DEVICE 20-May-77 5. The device for the SPRQUEUE file can be changed with REA. C. TKB: 1. ZAP method: use the following ZAP dialog. MCR>ZAP ZAP>TKB/LI (Listing of segment table) _62:57166/ ;CHANGE SYSLIB FROM 062:057166/ 054523 ;SY: TO _42123 ;SD: _66:61402/ ;CHANGE ODT.OBJ FROM 066:061402/ 054523 ;SY: TO _42123 ;SD: _107:64564 ;CHANGE RESIDENT LIBRARY 107:064564/ 054523 ;REFERENCES FROM SY: _42123 ;TO SD: _X 2. TKB method: incorporate following patches in CMD file. GBLPAT=P0OVR:$DFLIB+32:42123 ;SYSLIB GBLPAT=P11OVR:$SCANR+20:42123 ;ODT GBLPAT=P2LBR:$LIBR-10:42123 ;RES LIB D. PIP: 1. ZAP method: Use the following ZAP dialog(s) MCR>ZAP ZAP>PURPIP/LI (Listing of segment table) _3:40030/ ;change MO: device 003:40030/54523 ;from SY: _42123 ;to SD: _X MCR>ZAP ZAP>PIP/LI (Listing of segment table) _3:20030/ ;change MO: device 003:20030/54523 ;from SY: _42123/ ;to SD: _X