检测处理器核心数量

This commit is contained in:
fslongjin
2022-04-04 18:42:22 +08:00
parent e667fff256
commit 60dc9f4932
10 changed files with 103 additions and 35 deletions

12
kernel/smp/smp.h Normal file
View File

@ -0,0 +1,12 @@
#include "../common/glib.h"
#include "../common/asm.h"
#include "../driver/acpi/acpi.h"
#include "../driver/interrupt/apic/apic.h"
#define MAX_SUPPORTED_PROCESSOR_NUM 1024 // 操作系统支持的最大处理器数量
/**
* @brief 初始化对称多核处理器
*
*/
void smp_init();