函数逻辑报告 |
Source Code:arch\x86\kernel\smpboot.c |
Create Date:2022-07-27 09:24:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:NOTE - on most systems this is a PHYSICAL apic ID, but on multiquad* (ie clustered apic addressing mode), this is a LOGICAL apic ID.* Returns zero if CPU booted OK, else error code from* ->wakeup_secondary_cpu.
函数原型:static int do_boot_cpu(int apicid, int cpu, struct task_struct *idle, int *cpu0_nmi_registered)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | apicid | |
| int | cpu | |
| struct task_struct * | idle | |
| int * | cpu0_nmi_registered |
| 1027 | start_ip等于SMP trampoline |
| 1029 | boot_error等于0 |
| 1032 | sp等于task_pt_regs(idle) |
| 1035 | initial_stack等于sp |
| 1038 | init_espfix_ap(cpu) |
| 1048 | 如果warm_reset则 |
| 1050 | pr_debug("Setting warm reset code and vector.\n") |
| 1056 | 如果APIC_INTEGRATED(boot_cpu_apic_version)则 |
| 1057 | apic_write(APIC_ESR, 0) |
| 1068 | 清空CPU信息 |
| 1069 | smp_mb() |
| 1083 | 如果非boot_error则 |
| 1087 | boot_error等于负1 |
| 1089 | 当time_before(jiffies, timeout)循环 |
| 1102 | 如果非boot_error则 |
| 1117 | 如果warm_reset则 |
| 1124 | 返回:boot_error |
| 名称 | 描述 |
|---|---|
| native_cpu_up |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |