函数逻辑报告 |
Source Code:arch\x86\kernel\reboot.c |
Create Date:2022-07-27 09:18:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:To the best of our knowledge Windows compatible x86 hardware expects* the following on reboot:* 1) If the FADT has the ACPI reboot register flag set, try it* 2) If still alive, write to the keyboard controller* 3) If still alive, write to the ACPI reboot
函数原型:static void native_machine_emergency_restart(void)
返回类型:void
参数:无
| 588 | attempt等于0 |
| 598 | mode等于如果reboot_mode恒等于REBOOT_WARM则0x1234否则0 |
| 605 | 如果efi_capsule_pending(NULL)则 |
| 606 | 打印信息("EFI capsule is pending, forcing EFI reboot.\n") |
| 607 | reboot_type = BOOT_EFI |
| 610 | 循环 |
| 613 | 当:(reboot_type) == BOOT_ACPI |
| 618 | 当:(reboot_type) == BOOT_KBD |
| 619 | mach_reboot_fixups() |
| 622 | kb_wait() |
| 624 | Basic port I/O |
| 627 | 如果attempt恒等于0且orig_reboot_type恒等于BOOT_ACPI则 |
| 628 | attempt等于1 |
| 629 | reboot_type = BOOT_ACPI |
| 630 | 否则 |
| 631 | reboot_type = BOOT_EFI |
| 633 | 退出 |
| 635 | 当:(reboot_type) == BOOT_EFI |
| 640 | 当:(reboot_type) == BOOT_BIOS |
| 644 | reboot_type = BOOT_CF9_SAFE |
| 645 | 退出 |
| 647 | 当:(reboot_type) == BOOT_CF9_FORCE |
| 651 | 当:(reboot_type) == BOOT_CF9_SAFE |
| 653 | reboot_code等于如果reboot_mode恒等于REBOOT_WARM则0x06否则0x0E |
| 654 | cf9等于从端口输入字节按位与reboot_code的反 |
| 655 | Basic port I/O |
| 658 | Basic port I/O |
| 661 | reboot_type = BOOT_TRIPLE |
| 662 | 退出 |
| 664 | 当:(reboot_type) == BOOT_TRIPLE |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |