ip32-reset.c
来自「一个2.4.21版本的嵌入式linux内核」· C语言 代码 · 共 35 行
C
35 行
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2001 Keith M Wesolowski * Copyright (C) 2001 Paul Mundt */#include <linux/init.h>#include <asm/reboot.h>#include <asm/sgialib.h>static void ip32_machine_restart(char *cmd){ ArcReboot();}static inline void ip32_machine_halt(void){ ArcEnterInteractiveMode();}static void ip32_machine_power_off(void){ ip32_machine_halt();}void __init ip32_reboot_setup(void){ _machine_restart = ip32_machine_restart; _machine_halt = ip32_machine_halt; _machine_power_off = ip32_machine_power_off;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?