reboot.c

来自「RTEMS (Real-Time Executive for Multiproc」· C语言 代码 · 共 23 行

C
23
字号
/* $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 + =
减小字号Ctrl + -
显示快捷键?