Import 2.3.9pre5
[davej-history.git] / arch / mips / baget / reset.c
blobe932ba28b8573360fb559da5b47f46069769d022
1 #include <linux/kernel.h>
2 #include <asm/system.h>
3 #include <asm/baget/baget.h>
6 #define R3000_RESET_VEC 0xbfc00000
7 typedef void vector(void);
10 static void baget_reboot(char *from_fun)
12 cli();
13 baget_printk("\n%s: jumping to RESET code...\n", from_fun);
14 (*(vector*)R3000_RESET_VEC)();
17 /* fixme: proper functionality */
19 void baget_machine_restart(char *command)
21 baget_reboot("restart");
24 void baget_machine_halt(void)
26 baget_reboot("halt");
29 void baget_machine_power_off(void)
31 baget_reboot("power off");