📄 reboot.c
字号:
/* $Id: reboot.c,v 1.1.4.2 2004/11/10 22:15:00 joel Exp $ */#include "console.inl"#include <rtems/bspIo.h>#include <libcpu/stackTrace.h>/*-------------------------------------------------------------------------+| Function: rtemsReboot| Description: Reboot the PC.| Global Variables: None.| Arguments: None.| Returns: Nothing.+--------------------------------------------------------------------------*/void rtemsReboot(void){ printk("Printing a stack trace for your convenience :-)\n"); CPU_print_stack(); /* shutdown and reboot */#if defined(BSP_KBD_IOBASE) kbd_outb(0x4, 0xFE); /* use keyboard controler to do the job... */#endif} /* rtemsReboot */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -