[Glibc-bsd-commits] r3667 - in trunk/kfreebsd-9/debian: . patches

Robert Millan rmh at alioth.debian.org
Tue Aug 2 22:53:24 UTC 2011


Author: rmh
Date: 2011-08-02 22:53:24 +0000 (Tue, 02 Aug 2011)
New Revision: 3667

Added:
   trunk/kfreebsd-9/debian/patches/006_mips_i8259_alloc.diff
Modified:
   trunk/kfreebsd-9/debian/changelog
   trunk/kfreebsd-9/debian/patches/series
Log:
006_mips_i8259_alloc.diff: Fix allocation of i8259 I/O ports on mipsel/malta.

Modified: trunk/kfreebsd-9/debian/changelog
===================================================================
--- trunk/kfreebsd-9/debian/changelog	2011-08-02 22:47:45 UTC (rev 3666)
+++ trunk/kfreebsd-9/debian/changelog	2011-08-02 22:53:24 UTC (rev 3667)
@@ -7,8 +7,10 @@
     on any-i386.
   * Loosen freebsd-utils dependency (8.1-5 already provides proper devd
     support now that #630614 has been backported).
+  * 006_mips_i8259_alloc.diff: Fix allocation of i8259 I/O ports on
+    mipsel/malta.
 
- -- Robert Millan <rmh at debian.org>  Wed, 03 Aug 2011 00:47:14 +0200
+ -- Robert Millan <rmh at debian.org>  Wed, 03 Aug 2011 00:53:10 +0200
 
 kfreebsd-9 (9.0~svn224413-1) experimental; urgency=low
 

Added: trunk/kfreebsd-9/debian/patches/006_mips_i8259_alloc.diff
===================================================================
--- trunk/kfreebsd-9/debian/patches/006_mips_i8259_alloc.diff	                        (rev 0)
+++ trunk/kfreebsd-9/debian/patches/006_mips_i8259_alloc.diff	2011-08-02 22:53:24 UTC (rev 3667)
@@ -0,0 +1,20 @@
+--- a/sys/mips/malta/gt_pci.c
++++ b/sys/mips/malta/gt_pci.c
+@@ -367,6 +367,17 @@
+ 	bus_space_write_1(sc->sc_st, sc->sc_ioh_elcr, 1,
+ 	    (sc->sc_elcr >> 8) & 0xff);
+ 
++	{
++		int rid;
++		void *res;
++		res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, IO_ICU1, IO_ICU1 + IO_ICUSIZE, IO_ICUSIZE, RF_ACTIVE);
++		if (res == NULL)
++			device_printf(dev, "cannot allocate registers\n");
++		res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, IO_ICU2, IO_ICU2 + IO_ICUSIZE, IO_ICUSIZE, RF_ACTIVE);
++		if (res == NULL)
++			device_printf(dev, "cannot allocate registers\n");
++	}
++
+ 	/*
+ 	 * Some ISA interrupts are reserved for devices that
+ 	 * we know are hard-wired to certain IRQs.

Modified: trunk/kfreebsd-9/debian/patches/series
===================================================================
--- trunk/kfreebsd-9/debian/patches/series	2011-08-02 22:47:45 UTC (rev 3666)
+++ trunk/kfreebsd-9/debian/patches/series	2011-08-02 22:53:24 UTC (rev 3667)
@@ -3,6 +3,7 @@
 003_glibc_dev_aicasm.diff
 004_xargs.diff
 005_linux_cflags.diff
+006_mips_i8259_alloc.diff
 #007_clone_signals.diff
 #009_disable_duped_modules.diff
 020_linker.diff 




More information about the Glibc-bsd-commits mailing list