Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2014 18:51:52 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269605 - head/sys/arm/arm
Message-ID:  <53e127c8.50f3.3c5653e1@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Tue Aug  5 18:51:51 2014
New Revision: 269605
URL: http://svnweb.freebsd.org/changeset/base/269605

Log:
  Attach arm generic interrupt and timer drivers in the middle of
  BUS_PASS_INTERRUPT and BUS_PASS_TIMER, respectively.

Modified:
  head/sys/arm/arm/generic_timer.c
  head/sys/arm/arm/gic.c
  head/sys/arm/arm/mpcore_timer.c
  head/sys/arm/arm/pl190.c

Modified: head/sys/arm/arm/generic_timer.c
==============================================================================
--- head/sys/arm/arm/generic_timer.c	Tue Aug  5 18:48:12 2014	(r269604)
+++ head/sys/arm/arm/generic_timer.c	Tue Aug  5 18:51:51 2014	(r269605)
@@ -343,7 +343,8 @@ static driver_t arm_tmr_driver = {
 
 static devclass_t arm_tmr_devclass;
 
-DRIVER_MODULE(timer, simplebus, arm_tmr_driver, arm_tmr_devclass, 0, 0);
+EARLY_DRIVER_MODULE(timer, simplebus, arm_tmr_driver, arm_tmr_devclass, 0, 0,
+    BUS_PASS_TIMER + BUS_PASS_ORDER_MIDDLE);
 
 void
 DELAY(int usec)

Modified: head/sys/arm/arm/gic.c
==============================================================================
--- head/sys/arm/arm/gic.c	Tue Aug  5 18:48:12 2014	(r269604)
+++ head/sys/arm/arm/gic.c	Tue Aug  5 18:51:51 2014	(r269605)
@@ -264,7 +264,8 @@ static driver_t arm_gic_driver = {
 
 static devclass_t arm_gic_devclass;
 
-DRIVER_MODULE(gic, simplebus, arm_gic_driver, arm_gic_devclass, 0, 0);
+EARLY_DRIVER_MODULE(gic, simplebus, arm_gic_driver, arm_gic_devclass, 0, 0,
+    BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
 
 static void
 gic_post_filter(void *arg)

Modified: head/sys/arm/arm/mpcore_timer.c
==============================================================================
--- head/sys/arm/arm/mpcore_timer.c	Tue Aug  5 18:48:12 2014	(r269604)
+++ head/sys/arm/arm/mpcore_timer.c	Tue Aug  5 18:51:51 2014	(r269605)
@@ -382,7 +382,8 @@ static driver_t arm_tmr_driver = {
 
 static devclass_t arm_tmr_devclass;
 
-DRIVER_MODULE(mp_tmr, simplebus, arm_tmr_driver, arm_tmr_devclass, 0, 0);
+EARLY_DRIVER_MODULE(mp_tmr, simplebus, arm_tmr_driver, arm_tmr_devclass, 0, 0,
+    BUS_PASS_TIMER + BUS_PASS_ORDER_MIDDLE);
 
 /*
  * Handle a change in clock frequency.  The mpcore timer runs at half the CPU

Modified: head/sys/arm/arm/pl190.c
==============================================================================
--- head/sys/arm/arm/pl190.c	Tue Aug  5 18:48:12 2014	(r269604)
+++ head/sys/arm/arm/pl190.c	Tue Aug  5 18:51:51 2014	(r269605)
@@ -152,7 +152,8 @@ static driver_t pl190_intc_driver = {
 
 static devclass_t pl190_intc_devclass;
 
-DRIVER_MODULE(intc, simplebus, pl190_intc_driver, pl190_intc_devclass, 0, 0);
+EARLY_DRIVER_MODULE(intc, simplebus, pl190_intc_driver, pl190_intc_devclass, 
+    0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
 
 int
 arm_get_next_irq(int last_irq)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e127c8.50f3.3c5653e1>