From owner-svn-src-head@FreeBSD.ORG Thu Jan 15 07:51:17 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E65671065672; Thu, 15 Jan 2009 07:51:17 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D62F18FC0C; Thu, 15 Jan 2009 07:51:17 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0F7pHpj068594; Thu, 15 Jan 2009 07:51:17 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0F7pHC0068593; Thu, 15 Jan 2009 07:51:17 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <200901150751.n0F7pHC0068593@svn.freebsd.org> From: Warner Losh Date: Thu, 15 Jan 2009 07:51:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187294 - head/sys/mips/mips X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2009 07:51:18 -0000 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); } /*