User Tools

Site Tools


cdc:nos2.source:nam5871:ns_sdb

NS$SDB

Table Of Contents

  • [00009] PROC NS$SDB
  • [00011] NS$SDB - SEND DUMP BATCH.
  • [00015] NS$SBD - SEND DUMP BATCH.
  • [00051] PROC NS$DBG
  • [00057] PROC MOVEOK
  • [00058] PROC NETPUT
  • [00059] PROC NS$FBH
  • [00060] PROC RECALL
  • [00061] PROC TSBINFO
  • [00062] PROC WRITEW

Source Code

NS$SDB.txt
  1. *DECK NS$SDB
  2. USETEXT DTSB$NS
  3. USETEXT NAT$NS
  4. USETEXT NDF$NS
  5. USETEXT PFC$NS
  6. USETEXT SMB$NS
  7. USETEXT SMD$NS
  8.  
  9. PROC NS$SDB; # SEND DUMP BATCH #
  10.  
  11. # TITLE NS$SDB - SEND DUMP BATCH. #
  12.  
  13. BEGIN # NS$SDB #
  14. #
  15. ** NS$SBD - SEND DUMP BATCH.
  16. *
  17. * J.C. LEE 1981
  18. *
  19. * THIS ROUTINE SEND A DUMP BATCH.
  20. *
  21. * PROC NS$SDB
  22. *
  23. * ENTRY:
  24. * NONE.
  25. *
  26. * EXIT:
  27. * NONE.
  28. *
  29. * METHOD:
  30. * ACCESS NAT.
  31. * EXTRACT DUMP-EA AND DUMP-BA FROM NAT.
  32. * FOR FOREVER WHILE DUMP-BA LQ DUMP-EA
  33. * AND DUMP-BATCH-COUNT HASNOT REACHED LIMIT:
  34. * COMPUTE DUMP-EA.
  35. * FORMAT NPU/DT/R (DUMP)
  36. * FORMAT ABH.
  37. * NETPU NPU/DT/R
  38. * INCREMENT DUMP-BATCH-COUNT.
  39. * SET DUMP-BA TO DUMP-EA PLUS ONE.
  40. * UPDATE DUMP-BA IN NAT.
  41. * STORE DUMP-BATCH-COUNT IN NAT.
  42. * SET DUMP-BLOCK-BATCH-COUNT.
  43. * SET DUMP-BLOCK-EA.
  44. * TRANSFER DUMP-BLOCK-HEADER TO NPU-DUMP BUFFER.
  45. *
  46. #
  47.  
  48. $BEGIN
  49. XREF
  50. BEGIN
  51. PROC NS$DBG; # TRACE PROCEDURE CALL #
  52. END
  53. $END
  54.  
  55. XREF
  56. BEGIN
  57. PROC MOVEOK; # ALLOW TSB TO MOVE #
  58. PROC NETPUT; # NETPUT #
  59. PROC NS$FBH; # FORMAT ABH #
  60. PROC RECALL; # RECALL #
  61. PROC TSBINFO; # LOCATE TSB #
  62. PROC WRITEW; # CALL WRITEW MACRO #
  63. END
  64.  
  65. ITEM DBA U; # DUMP BEGINNING ADDRESS #
  66. ITEM DEA U; # DUMP ENDING ADDRESS #
  67. ITEM DTSBN U; # DUMP TSB NUMBER #
  68. ITEM I I; # DUMP BATCH COUNT #
  69. ITEM TEMPEA U; # TEMPORARY VARIABLE #
  70. ITEM TSBFWA U; # TSB FWA #
  71. ITEM TSBSIZE U; # TSB SIZE #
  72.  
  73. ARRAY DBHDR [0:0] S(L$DBHDR);
  74. BEGIN # DUMP BLOCK HEADER WORD #
  75. ITEM DBHDRWORD U(00,00,60);
  76. END
  77.  
  78. CONTROL EJECT;
  79.  
  80. $BEGIN
  81. NS$DBG("SDB"); # TRACE CALL #
  82. $END
  83.  
  84. DBA = NAT$DBA[0]; # DUMP BEGINNING ADDRESS #
  85. DEA = NAT$DEA[0]; # DUMP ENDING ADDRESS #
  86.  
  87. NS$FBH(LNPUDTDR,TRUE); # FORMAT ABH FOR NETWORK SM #
  88.  
  89. PFCSFC[0] = NPUDT; # PFC/SFC #
  90. NPUPO[0] = NAT$PN[0]; # PORT NUMBER #
  91. NPUSP[0] = NAT$SPN[0]; # SUBPORT NUMBER #
  92. NPUCC[0] = CMDCODE"CC$DUMP"; # COMMAND CODE #
  93. NPULS[0] = NAT$LSN[0]; # LOAD SEQUENCE NUMBER #
  94. #
  95.   FORMAT DUMP BLOCK HEADER
  96. #
  97. P<NDF$DBHDR> = LOC(DBHDR);
  98. DBH$WORD[0] = 0;
  99. DBH$BT[0] = NAT$DBT[0]; # DUMP BLOCK TYPE #
  100. DBH$BA[0] = DBA; # DUMP BLOCK BEGINNING ADDRESS #
  101. #
  102.   FORMAT NPU/DT/R (DUMP)
  103. #
  104. FOR I = 0 STEP 1 WHILE DBA LQ DEA # MORE MEMORY TO BE DUMPED #
  105. AND I LS MAX$DBC # NOT EXCEEDING MAX BATCH CNT#
  106. DO # SEND A BATCH OF DUMP REQUESTS #
  107. BEGIN # SEND A NPU/DT/R (DUMP) #
  108. NPUBA1[0] = B<36,4>DBA; # DUMP PACKET BEGINNING ADDR #
  109. NPUBA2[0] = B<40,20>DBA;
  110. TEMPEA = DBA + MAX$DPHWDS - 1;
  111.  
  112. IF TEMPEA GQ DEA
  113. THEN # REACH END OF DUMP RANGE #
  114. BEGIN
  115. NPUEA[0] = DEA; # DUMP PACKET ENDING ADDRESS #
  116. NAT$F$DP[0] = TRUE; # SET DIRECTIVE PROCESSED FLAG#
  117. END
  118.  
  119. ELSE
  120. NPUEA[0] = TEMPEA;
  121. DBA = NPUEA[0] + 1; # UPDATE DBA #
  122.  
  123. NETPUT(ABH$WORD,SMB$BUFFER); # SEND DUMP REQUEST #
  124.  
  125. END
  126.  
  127. NAT$DBA[0] = DBA; # UPDATE DUMP BA IN NAT #
  128. NAT$BC[0] = I; # STORE DUMP BATCH COUNT #
  129. DBH$BC[0] = I; # SET DUMP BLOCK BATCH COUNT #
  130. DBH$EA[0] = DBA - 1; # SET DUMP BLOCK ENDING ADDRESS #
  131. DTSBN = NAT$NDTSBN[0];
  132. TSBINFO(TSBSIZE,TSBFWA,DTSBN); # LOCATE DUMP TSB #
  133. P<DTSB$FET> = TSBFWA + L$DTSBHDR; # FWA OF NDF FET #
  134.  
  135. WRITEW(DTSB$FET,NDF$DBHDR,L$DBHDR); # TRANSFER DBH TO DUMP TSB #
  136.  
  137. RETURN;
  138. END # NS$SDB #
  139. TERM
cdc/nos2.source/nam5871/ns_sdb.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator