Opened 5 years ago

Closed 11 days ago

#244 closed defect (invalid)

What?????

Reported by: canthony Owned by: Eric Swenson
Priority: major Milestone:
Component: Answering Service Version:
Keywords: Cc:

Description

Found in init_sst.pl1

`

355 if (scs$controller_data (i).online | scs$controller_data (i).offline) & base = 0
356 then begin; /* we found our bootload controller */

`

How can you be running at all if the low memory controller is offline?

This is equivalent to the "Branch If Power Off" instruction.

Change History (2)

comment:1 by Eric Swenson, 11 days ago

This test is correct.

  • offline doesn't mean "powered off". In scs$controller_data, offline means "configured, but not in use; can be added" (scs.incl.pl1: "ON if controller is offline but can be added"). online | offline therefore means "this controller is in the configuration deck". That is exactly how scas_init uses it to detect a

controller listed twice:

`if cdata.online | cdata.offline then call syserr (CRASH, "... appears
twice in config deck.")`.

  • The base-0 controller is always online by the time init_sst runs. scas_init (around lines 300-313) finds the controller whose base is 0. If its MEM card says off, it reports "Config card for bootload MEM indicates unit is offline." and forces it online (cdata.offline = "0"b; cdata.online = "1"b). So in init_sst the offline half of the test can never be the one that's true for the base-0 controller.
  • The test is a copy of the non-early loop. The early loop (lines ~352-362) copies the non-early loop just above it, which must include offline controllers: their core map entries need the right controller number (cme.contr) so that their memory can be added later by reconfiguration. The early loop only adds & base = 0.

So the code is "find the configured controller at address 0", which is
the bootload controller.

Version 0, edited 11 days ago by Eric Swenson (next)

comment:2 by Eric Swenson, 11 days ago

Resolution: → invalid
Status: new → closed
Note: See TracTickets for help on using tickets.