第 15 章:SMP 操作系统
学习目标
- 理解 SMP 架构
- 移植多核 Linux
- 实现核间通信
15.1 SMP 启动
// 核心 0:主核
boot_secondary_cores();
// 核心 1:从核
secondary_start();
15.2 核间中断(IPI)
send_ipi(target_cpu, IPI_RESCHEDULE);
思考:如何唤醒其他核?
// 核心 0:主核
boot_secondary_cores();
// 核心 1:从核
secondary_start();
send_ipi(target_cpu, IPI_RESCHEDULE);
思考:如何唤醒其他核?