linux内核如何支持多核cpu,『阿男的Linux内核世界』*多核CPU是如何启动的?*...
『阿男的Linux内核世界』*多核CPU是如何启动的?*
大家有没有想过,多核CPU是如何启动的?BIOS代码由哪个核心执行?此外,Kernel从BIOS接管过来CPU的使用权以后,Kernel运行在哪个核心里面?
这些问题大家都可以想一下,阿男给大家慢慢解答。
首先是阿男一直推荐大家看的Intel的CPU的架构手册Combined Volume Set of Intel® 64 and IA-32 Architectures Software Developer’s Manuals^1。
在这篇文档里面,大家可以从8.4 MULTIPLE-PROCESSOR (MP) INITIALIZATION当中找到答案:
阿男从里面引用文字如下:
The IA-32 architecture (beginning with the P6 family processors) defines a multiple-processor (MP) initialization protocol called the Multiprocessor Specification Version 1.4. This specification defines the boot protocol to be used by IA-32 processors in multiple-processor systems.
简单翻译,就是说Intel的多核CPU通过Multiprocessor Spe