Patent ID: 8484447

Claim:
A method for controlling peripheral component interconnect express (PCI-E) slots of a computer, the computer comprising a plurality of processors, a PCI-E slot unit, and a PCI-E multiplexer, the method comprising: reading processor configuration information of the PCI-E slot unit from a complementary metal oxide semiconductor (CMOS) chip of the computer when the computer boots up; controlling a general purpose input output (GPIO) interface of the computer to output a first control signal to the PCI-E multiplexer according to the processor configuration information; controlling the PCI-E slot unit to connect to one of the processors through the PCI-E multiplexer according to the first control signal; checking whether the processor connected to the PCI-E slot unit is running normally; booting an operating system of the computer, if the processor connected to the PCI-E slot unit is running normally; or controlling the GPIO interface to output a second control signal to the PCI-E multiplexer, if the processor connected to the PCI-E slot unit is not running normally; controlling the PCI-E slot unit to connect to another processor through the PCI-E multiplexer according to the second control signal; and booting the operating system of the computer; wherein the computer provides a setting menu to a user to set one of the processors to control the PCI-E slot unit when the computer boots up, and continues to implement a booting program of the computer in a predetermined interval when the user does not log into the setting menu to set one of the processors to control the PCI-E slot unit.