函数逻辑报告 |
Source Code:arch\x86\kernel\smpboot.c |
Create Date:2022-07-27 09:24:21 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Poke the other CPU in the eye via NMI to wake it up. Remember that the normal* INIT, INIT, STARTUP sequence will reset the chip hard for us, and this* won't ... remember to clear down the APIC, etc later.
函数原型:int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | apicid | |
| unsigned long | start_eip |
| 748 | accept_status等于0 |
| 756 | pr_debug("Waiting for send to finish...\n") |
| 762 | 0x10c7 is 2**32 / 1000000 (rounded up) (200) |
| 763 | 如果APIC_INTEGRATED(boot_cpu_apic_version)则 |
| 765 | 如果maxlvt大于3则apic_write(APIC_ESR, 0) |
| 767 | accept_status等于apic_read(APIC_ESR)按位与0xEF |
| 769 | pr_debug("NMI sent\n") |
| 771 | 如果send_status则打印错误信息("APIC never delivered???\n") |
| 773 | 如果accept_status则打印错误信息("APIC delivery error (%lx)\n", accept_status) |
| 776 | 返回:send_status按位或accept_status |
| 名称 | 描述 |
|---|---|
| wakeup_cpu_via_init_nmi | Wake up AP by INIT, INIT, STARTUP sequence.* Instead of waiting for STARTUP after INITs, BSP will execute the BIOS* boot-strap code which is not a desired behavior for waking up BSP. To* void the boot-strap code, wake up CPU0 by NMI instead. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |