函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称: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
589  orig_reboot_type等于reboot_type
592  如果This is set if we need to go through the 'emergency' path.* When machine_emergency_restart() is called, we may be on* an inconsistent state and won't be able to do a clean cleanupUse NMIs as IPIs to tell all CPUs to disable virtualization
595  tboot_shutdown(TB_SHUTDOWN_REBOOT)
598  mode等于如果reboot_mode恒等于REBOOT_WARM则0x1234否则0
599  *__va(0x472)等于mode
605  如果efi_capsule_pending(NULL)则
606  打印信息("EFI capsule is pending, forcing EFI reboot.\n")
607  reboot_type = BOOT_EFI
610  循环
614  acpi_reboot()
616  退出
618  :(reboot_type) == BOOT_KBD
621 i小于10循环
627  如果attempt恒等于0且orig_reboot_type恒等于BOOT_ACPI
628  attempt等于1
630  否则
633  退出
635  :(reboot_type) == BOOT_EFI
636  efi_reboot(reboot_mode, NULL)
638  退出
645  退出
662  退出
666  __asm__ __volatile__
670  退出