From owner-p4-projects@FreeBSD.ORG Mon Jul 17 13:42:27 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1290716A4FF; Mon, 17 Jul 2006 13:42:27 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B41B616A4FD for ; Mon, 17 Jul 2006 13:42:26 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05E2A43D68 for ; Mon, 17 Jul 2006 13:42:25 +0000 (GMT) (envelope-from bms@incunabulum.net) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k6HDgO18096075 for ; Mon, 17 Jul 2006 13:42:24 GMT (envelope-from bms@incunabulum.net) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6HDgOTA096072 for perforce@freebsd.org; Mon, 17 Jul 2006 13:42:24 GMT (envelope-from bms@incunabulum.net) Date: Mon, 17 Jul 2006 13:42:24 GMT Message-Id: <200607171342.k6HDgOTA096072@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bms@incunabulum.net using -f From: Bruce M Simpson To: Perforce Change Reviews Cc: Subject: PERFORCE change 101764 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 13:42:27 -0000 http://perforce.freebsd.org/chv.cgi?CH=101764 Change 101764 by bms@bms_montagne on 2006/07/17 13:42:23 Add board-level reset routine malta_reset(). Not emulated in gxemul Affected files ... .. //depot/projects/mips2/src/sys/mips/mips4k/malta/malta_machdep.c#2 integrate Differences ... ==== //depot/projects/mips2/src/sys/mips/mips4k/malta/malta_machdep.c#2 (text+ko) ==== @@ -34,6 +34,7 @@ void lcd_init(void); void lcd_puts(char *); +void malta_reset(void); /* * Offsets to MALTA LCD characters. @@ -92,3 +93,15 @@ malta_lcd_print(s); } +/* + * Perform a board-level soft-reset. + * Note that this is not emulated by gxemul. + */ +void +malta_reset(void) +{ + char *c; + + c = (char *)MIPS_PHYS_TO_KSEG0(MALTA_SOFTRES); + *c = MALTA_GORESET; +}