Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Aug 2014 17:00:50 +0000 (UTC)
From:      Roger Pau Monné <royger@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269675 - head/sys/x86/isa
Message-ID:  <53e3b0c2.25ff.29ca9019@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: royger
Date: Thu Aug  7 17:00:50 2014
New Revision: 269675
URL: http://svnweb.freebsd.org/changeset/base/269675

Log:
  atpic: make sure atpic_init is called after IO APIC initialization
  
  After r269510 the IO APIC and ATPIC initialization is done at the same
  order, which means atpic_init can be called before the IO APIC has
  been initalized. In that case the ATPIC will take over the interrupt
  sources, preventing the IO APIC from registering them.
  
  Reported by: David Wolfskill <david@catwhisker.org>
  Tested by: David Wolfskill <david@catwhisker.org>,
             Trond Endrestøl <Trond.Endrestol@fagskolen.gjovik.no>
  Sponsored by: Citrix Systems R&D

Modified:
  head/sys/x86/isa/atpic.c

Modified: head/sys/x86/isa/atpic.c
==============================================================================
--- head/sys/x86/isa/atpic.c	Thu Aug  7 16:53:07 2014	(r269674)
+++ head/sys/x86/isa/atpic.c	Thu Aug  7 17:00:50 2014	(r269675)
@@ -524,7 +524,7 @@ atpic_init(void *dummy __unused)
 		intr_register_source(&ai->at_intsrc);
 	}
 }
-SYSINIT(atpic_init, SI_SUB_INTR, SI_ORDER_SECOND + 1, atpic_init, NULL);
+SYSINIT(atpic_init, SI_SUB_INTR, SI_ORDER_FOURTH, atpic_init, NULL);
 
 void
 atpic_handle_intr(u_int vector, struct trapframe *frame)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e3b0c2.25ff.29ca9019>