diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-03-02 22:54:30 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-03-02 22:54:30 +0000 |
commit | cc33610afa62105295c01c8341b38ca8ffaed45c (patch) | |
tree | 1be57625b659d4ae3ac4943e0cbaaa9a10a5b8ab /sys | |
parent | dfbe3d8b76065bb63f56375bf5de7a5795e89003 (diff) |
Replace magic numbers with more meaningful (1 << interrupt#) constructs.
No functional change.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/alpha/pci/sio_pic.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/alpha/pci/sio_pic.c b/sys/arch/alpha/pci/sio_pic.c index 1f5bd89f2ae..855020961eb 100644 --- a/sys/arch/alpha/pci/sio_pic.c +++ b/sys/arch/alpha/pci/sio_pic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sio_pic.c,v 1.33 2012/10/20 19:08:39 deraadt Exp $ */ +/* $OpenBSD: sio_pic.c,v 1.34 2013/03/02 22:54:29 miod Exp $ */ /* $NetBSD: sio_pic.c,v 1.28 2000/06/06 03:10:13 thorpej Exp $ */ /*- @@ -567,13 +567,14 @@ sio_intr_alloc(v, mask, type, irq) count = -1; /* some interrupts should never be dynamically allocated */ - mask &= 0xdef8; + mask &= 0xffff; + mask &= ~((1 << 13) | (1 << 8) | (1 << 2) | (1 << 1) | (1 << 0)); /* * XXX some interrupts will be used later (6 for fdc, 12 for pms). * the right answer is to do "breadth-first" searching of devices. */ - mask &= 0xefbf; + mask &= ~((1 << 12) | (1 << 6)); for (i = 0; i < ICU_LEN; i++) { if (LEGAL_IRQ(i) == 0 || (mask & (1<<i)) == 0) |