Date: Thu, 15 Jan 2009 07:51:17 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r187294 - head/sys/mips/mips Message-ID: <200901150751.n0F7pHC0068593@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Thu Jan 15 07:51:17 2009 New Revision: 187294 URL: http://svn.freebsd.org/changeset/base/187294 Log: Call platform_reset() instead of looping forever on reboot. # We likely need to have a default one of these that jumps to the rom boot # address that's defined in the MIPS ISA. Modified: head/sys/mips/mips/machdep.c Modified: head/sys/mips/mips/machdep.c ============================================================================== --- head/sys/mips/mips/machdep.c Thu Jan 15 07:48:37 2009 (r187293) +++ head/sys/mips/mips/machdep.c Thu Jan 15 07:51:17 2009 (r187294) @@ -198,8 +198,8 @@ cpu_startup(void *dummy) void cpu_reset(void) { - for (;;) - ; + + platform_reset(); } /* Get current clock frequency for the given cpu id. */ @@ -207,7 +207,7 @@ int cpu_est_clockrate(int cpu_id, uint64_t *rate) { - return (ENXIO); + return (ENXIO); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901150751.n0F7pHC0068593>