Patent ID: 8176365

Claim:
A computer apparatus comprising: a first processor; a second processor; a main memory; a memory-diagnostic unit that causes the second processor to execute a memory-diagnostic program to diagnose the main memory, and identifies a defective area in the main memory; a diagnostic-program loading unit that loads a processor-diagnostic program for diagnosing a plurality of functions of the first processor into an area of the main memory other than the defective area identified by the memory-diagnostic unit; a defective-function identifying unit that causes the second processor to execute the processor-diagnostic program loaded by the diagnostic-program loading unit, and identifies a defective function that is disabled from the functions of the first processor; and a processor-switching unit that switches the second processor to the first processor, wherein the processor-diagnostic program includes a plurality of diagnostic programs that diagnose the plurality of functions of the first processor, respectively, the diagnostic-program loading unit sequentially loads the plurality of diagnostic programs in an order of a diagnostic program diagnosing a basic function among the functions of the first processor to a diagnostic program diagnosing an applicable function among the functions of the first processor, the processor-switching unit switches, when the diagnostic-program loading unit loads the plurality of diagnostic programs up to a predetermined order of the order and the defective-function identifying unit causes the second processor to execute the processor-diagnostic programs loaded by the diagnostic-program loading unit, the second processor to the first processor, and the diagnostic programs whose order is later than the predetermined order among the plurality of diagnostic programs are executed by the first processor switched by the processor-switching unit.