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)
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)
29 void baget_machine_power_off(void)
31 baget_reboot("power off");