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

📄 reset.c

📁 Linux内核源代码 为压缩文件 是<<Linux内核>>一书中的源代码
💻 C
字号:
/* *  linux/arch/mips/jazz/process.c * *  Reset a Jazz machine. * *  $Id:$ */#include <linux/sched.h>#include <asm/jazz.h>#include <asm/io.h>#include <asm/system.h>#include <asm/reboot.h>#include <asm/delay.h>#include <asm/keyboard.h>static inline void kb_wait(void){	unsigned long start = jiffies;	do {		if (! (kbd_read_status() & 0x02))			return;	} while (jiffies - start < 50);}void jazz_machine_restart(char *command){    while (1) {	kb_wait ();    	kbd_write_command (0xd1);	kb_wait ();	kbd_write_output (0x00);    }}void jazz_machine_halt(void){}void jazz_machine_power_off(void){	/* Jazz machines don't have a software power switch */}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -