summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-07 18:23:58 +0000
committerjkh <jkh@FreeBSD.org>1995-05-07 18:23:58 +0000
commite689883147680d9248cbd81ed25be1be10d72abb (patch)
treec91601eb6d5735fb7d5f947513af0176a9c87a97
parentc9a627bda8bb799e376714966842bd45d28e3c94 (diff)
downloadFreeBSD-src-e689883147680d9248cbd81ed25be1be10d72abb.zip
FreeBSD-src-e689883147680d9248cbd81ed25be1be10d72abb.tar.gz
If user specifies IRQ 2, remap it to IRQ 9 with a warning.
Suggested by: rgrimes
-rw-r--r--sys/i386/i386/userconfig.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/i386/i386/userconfig.c b/sys/i386/i386/userconfig.c
index 9119784..5037f50 100644
--- a/sys/i386/i386/userconfig.c
+++ b/sys/i386/i386/userconfig.c
@@ -38,7 +38,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: userconfig.c,v 1.22 1995/03/16 18:11:32 bde Exp $
+ * $Id: userconfig.c,v 1.23 1995/03/17 04:39:41 phk Exp $
*/
#include <sys/param.h>
@@ -287,6 +287,10 @@ set_device_irq(CmdParm *parms)
unsigned irq;
irq = parms[1].parm.iparm;
+ if (irq == 2) {
+ printf("Warning: Remapping IRQ 2 to IRQ 9 - see config(1)\n");
+ irq = 9;
+ }
parms[0].parm.dparm->id_irq = (irq < 16 ? 1 << irq : 0);
save_dev(parms[0].parm.dparm);
return 0;
OpenPOWER on IntegriCloud