⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reboot.c

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 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 + -