From: <he...@us...> - 2005-01-07 23:34:42
|
Update of /cvsroot/gc-linux/linux/arch/ppc/platforms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14169 Modified Files: gamecube.c Log Message: Add kexec ppc hooks. We still have no kexec on mainline, but will soon. Index: gamecube.c =================================================================== RCS file: /cvsroot/gc-linux/linux/arch/ppc/platforms/gamecube.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- gamecube.c 6 Jan 2005 19:57:53 -0000 1.28 +++ gamecube.c 7 Jan 2005 23:34:32 -0000 1.29 @@ -158,6 +158,20 @@ #endif } +#ifdef CONFIG_KEXEC +void gamecube_shutdown(void) +{ + /* currently not used */ +} + +int gamecube_kexec_prepare(struct kimage *image) +{ + int retval = 0; + + return retval; +} +#endif /* CONFIG_KEXEC */ + void __init platform_init(unsigned long r3, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7) @@ -190,4 +204,11 @@ ppc_md.time_init = gcn_time_init; ppc_md.set_rtc_time = gcn_set_rtc_time; ppc_md.get_rtc_time = gcn_get_rtc_time; + +#ifdef CONFIG_KEXEC + ppc_md.machine_shutdown = gamecube_shutdown; + ppc_md.machine_kexec_prepare = gamecube_kexec_prepare; + ppc_md.machine_kexec = machine_kexec_simple; +#endif /* CONFIG_KEXEC */ + } |