System and method for controlling the competition between processors, in an at-compatible multiprocessor array, to initialize a test sequence
FIELD OF INVENTION 
     This invention relates to computer processors, and more particularly to an array thereof. 
     BACKGROUND, FEATURES 
     Workers are aware of computer systems having a pair of processor units such as processors CPU-A, CPU-B in FIG. 1. Here, it will be understood, that each processor has equal ability to access all system resources and access is granted on an alternating basis by an arbiter unit ARB. When the system is reset, or power is applied, the processors begin a procedure known as Power-On Self-Test (POST), in which the system is tested and initialized, including memory and chipset registers. 
     Only one processor is allowed to execute POST, as the code is not reentrant, and having both processors modifying registers and memory independently would cause problems. In addition, if both processors are executing and accessing off-cpu resources, the system will run only half as fast as if one processor were halted. 
     Another problem involves assigning certain AT-compatible resources to the (&#34;boot&#34;) processor which is executing POST. The A20-mask and the port92/keyboard controller reset function must be available to this (boot) processor, but should not be available to the other processor. 
     Such problems could be alleviated by always allowing the same processor to start POST (let one always be the &#34;boot processor&#34;), while holding the other in some reset or halted state, but this wouldn&#39;t afford any flexibility or resiliency; e.g., if the so-designated boot processor failed to start executing, for whatever reason. Thus, it is desirable to allow either processor to execute POST--and such is a salient object hereof. 
     We propose resolving such problems by using &#34;semaphore&#34; means, whereby each processor must check the semaphore to see if the other has already begun executing POST. The processor that first accesses (captures) the semaphore is allowed to continue, while the other must be prevented from executing POST. 
     A &#34;memory-based semaphore&#34; is not feasible since the memory has not been initialized. Only one processor should perform the initialization, since it involves writing to chipset configuration registers, so memory cannot be set up to allow the semaphore to reside there. A semaphore based on a standard I/O port will not work because there are no locked cycles to I/O ports: thus, if one processor sees the semaphore as &#34;clear&#34;, then before it can &#34;set&#34; the semaphore the other processor might also see it as clear, leading to both processors executing. In addition, neither memory-based nor standard I/O port-based methods allow the assignment of A20-mask and reset to the boot processor. 
     Solution 
     Our preferred solution is to provide, as &#34;semaphore&#34;, a special I/O port, called a Primary Processor Port (PPP) and use this to &#34;gate&#34; the POST sequence. 
     An object hereof is to address at least some of the foregoing problems and to provide at least some of the mentioned, and other, advantages. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     These and other features and advantages of the present invention will be appreciated by workers as they become better understood by reference to the following detailed description of the present preferred embodiments which should be considered in conjunction with the accompanying drawings, wherein like reference symbols denote like elements: 
     FIG. 1 is a schematic diagram of an embodiment hereof; and 
     FIG. 2 is a related flow chart indicating how such an embodiment will preferably operate. 
    
    
     DESCRIPTION OF PREFERRED EMBODIMENT 
     In giving more details of the subject embodiment, it will help to indicate an exemplary use-environment in which such an embodiment can be employed. Such is the arrangement we show in FIG. 1 (called &#34;System DH&#34;). System DH will now be briefly summarized. The methods and means discussed herein, will generally be understood as constructed and operating as presently known in the art, except where otherwise specified; likewise all materials, methods, devices and apparatus described herein will be understood as implemented by shown expedients according to present good practice. 
     In FIG. 1, system DH will be understood to comprise a portion of the processor board for any computer system (e.g., UNIX, DOS, Windows), such as one operating with a pair of Pentium processors CPU-A, CPU-B (assume DH is AT-compatible). Each processor is equally able to access all system resources, with access being granted by an arbiter ARB, on an alternating basis. When the system is &#34;reset&#34;, or when power is applied, one processor will usually need to begin POWER-ON-SELF-TEST, or &#34;POST&#34;, a procedure for testing and initializing the system. But only one CPU may execute POST. 
     Thus, according to a salient feature hereof, a special I/O port, PPP (FIG. 1), is provided to decide which CPU executes POST, while keeping the other CPU in &#34;hold&#34; mode. Port PPP is arranged to contain one significant bit, which is cleared to 0 on a reset of the system. The first processor to read the PPP reads the 0 value from the port (and so becomes the &#34;acquiring&#34;, or &#34;boot&#34;, &#34;processor&#34;). The act of reading the port as 0 causes the state of the bit to switch to 1 for (later) reads by the other (secondary) processor and causes other logic to route the A20-mask and reset to this &#34;boot processor&#34;. All subsequent reads of the PPP by the acquiring processor will return 0. The other (secondary) processor reads 1 from the port on all subsequent accesses. 
     The acquiring processor will proceed to execute POST, while the other secondary processor (reading 1) will halt, perhaps after performing some necessary initializations that do not conflict with those being performed by the acquiring processor. 
     Other Considerations 
     Under some circumstances, the system will be reset in a manner that results only in the processors being reset. In this case, the PPP must be rearmed in case the &#34;current-secondary&#34; (non-acquiring) processor later must become the &#34;boot&#34;, to then run POST and reset the system. To allow this, a &#34;write&#34; of any value to the PPP causes the port to be rearmed, and the next read of the PPP causes the AT-compatible resources to be (re) assigned and 0 to be read. In this way it is possible to reverse the roles of the processors for new, later boot sequences. 
     OPR Unit (FIG. 1) 
     We prefer, here, that the boot processor be able to reset the other processor (&#34;reset-other&#34;). As the AT-compatible reset is assigned to the primary processor, there is no conventional means of doing this. Thus, we prefer to also provide logic, on the processor board, to effect such a &#34;reset-other&#34; function, and do so with an Other Processor Reset (OPR) port. In order to avoid accidental resets of the other (secondary) processor, it is established that activating this function will require three back-to-back I/O cycles, i.e., &#34;read-write-read&#34;, with no intervening I/O. The third cycle returns a bit indicating whether &#34;reset-other&#34; has occurred--if not, the sequence is repeated until &#34;reset-other&#34; is confirmed. Thus, one CPU acts on OPR (e.g., &#34;inquiry&#34; line) while the other CPU gets reset thereby. 
     The foregoing is intended to cover the functionality of the PPP and the OPR. These components solve the fundamental problem of allowing each processor to recognize its role in system start-up and act accordingly, while providing the necessary assignment of hardware resources to a selected boot processor. 
     FIG. 2 is a flow chart depicting a typical POST sequence. Here, we assume that both CPUs are reset and that they proceed (soon after &#34;reset&#34;, and after executing instructions) to read the PPP (e.g., see FIG. 1 also). Whichever CPU first reads ZERO then, will proceed to execute POST, then rearm PPP and boot the operating system (OS). 
     The other, non-boot, CPU will read &#34;ONE&#34; at PPP, and be caused to &#34;halt&#34; (i.e., allow the boot CPU to execute POST, while, perhaps, participating as required). Later, the operating system brings the &#34;halted&#34; CPU back into normal operation. Thus, one may view our PPP unit as, essentially, &#34;gating&#34; this &#34;POST&#34; (or other) sequence; and nominally able to do so for two, or more, microprocessors, while the &#34;so-enabled&#34; microprocessor will--at some point-- also act to &#34;rearm&#34; PPP so a new &#34;boot-selecting&#34; sequence may be gated (zero reset). For three or more microprocessors some appropriate modification of OPR will be expected. 
     In conclusion, it will be understood that the preferred embodiments described herein are only exemplary, and that the invention is capable of many modifications and variations in construction, arrangement and use without departing from the spirit of the claims. 
     For example, the means and methods disclosed herein are also applicable to other related systems. Also, the present invention is applicable for enhancing other forms of multiprocessor arrangements. 
     The above examples of possible variations of the present invention are merely illustrative. Accordingly, the present invention is to be considered as including all possible modifications and variations coming within the scope of the invention as defined by the appended claims.