Method for implementing server operating system applied to Loongson 3B processor

The invention discloses a method for implementing a server operating system applied to a Loongson 3B processor. The method comprises the following five steps of: (step 101) performing initialization related to the system structure, (step 102) performing setup of a trap door and an interruption door; (step 103) performing memory initialization supporting an NUMA frame and setting a memory management module; (step 104) performing setup of interruption initialization; and (step 105) performing setup of PCI subsystem initialization. The method firstly provides support for the CPU, the memory, the interruption and the NUMA frame according to the requirements for the hardware of the Loongson 3B processor, to ensure stable operation of the whole operating system. The method has broad use values and application prospects in the field of computer operating systems.