From owner-p4-projects@FreeBSD.ORG Wed Dec 14 18:23:26 2005 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 2E44616A422; Wed, 14 Dec 2005 18:23:26 +0000 (GMT) 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 0821A16A41F for ; Wed, 14 Dec 2005 18:23:26 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB04D43D7B for ; Wed, 14 Dec 2005 18:23:20 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jBEINE4w082432 for ; Wed, 14 Dec 2005 18:23:14 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jBEINDpV082429 for perforce@freebsd.org; Wed, 14 Dec 2005 18:23:13 GMT (envelope-from imp@freebsd.org) Date: Wed, 14 Dec 2005 18:23:13 GMT Message-Id: <200512141823.jBEINDpV082429@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 88183 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: Wed, 14 Dec 2005 18:23:26 -0000 http://perforce.freebsd.org/chv.cgi?CH=88183 Change 88183 by imp@imp_Speedy on 2005/12/14 18:22:43 Better panic message, allocate the interrupt shareable (but I just realized I didn't check to see if the ISR can cope). Affected files ... .. //depot/projects/arm/src/sys/arm/at91/at91rm92timer.c#3 edit Differences ... ==== //depot/projects/arm/src/sys/arm/at91/at91rm92timer.c#3 (text+ko) ==== @@ -136,9 +136,10 @@ bus_space_write_4(timer_softc->sc_st, timer_softc->sc_sh, TIMER_IDR, 0xffffffff); /* The system timer shares the system irq (1) */ - irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 1, 1, 1, RF_ACTIVE); + irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 1, 1, 1, + RF_ACTIVE | RF_SHAREABLE); if (!irq) - panic("Unable to all irq for the system timer"); + panic("Unable to allocate irq for the system timer"); else bus_setup_intr(dev, irq, INTR_TYPE_CLK | INTR_FAST, clock_intr, NULL, &ih);