reboot.c

来自「linux-2.4.29操作系统的源码」· C语言 代码 · 共 27 行

C
27
字号
/* * FILE NAME *	arch/mips/vr41xx/tanbac-tb0229/reboot.c * * BRIEF MODULE DESCRIPTION *	Depending on TANBAC TB0229(VR4131DIMM) of reboot system call. * * Copyright 2003 Megasolution Inc. *                matsu@megasolution.jp * *  This program is free software; you can redistribute it and/or modify it *  under the terms of the GNU General Public License as published by the *  Free Software Foundation; either version 2 of the License, or (at your *  option) any later version. */#include <asm/io.h>#include <asm/vr41xx/tb0229.h>#define tb0219_hard_reset()	writew(0, TB0219_RESET_REGS)void tanbac_tb0219_restart(char *command){	local_irq_disable();	tb0219_hard_reset();	while (1);}

⌨️ 快捷键说明

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