- Simplify the sizeof expression in the CTASSERT() for NUM_ISA_IRQS.
- Fixup grammar in a comment. Submitted by: bde (1)
This commit is contained in:
parent
0fd166d7da
commit
ffe2232b31
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129095
@ -177,7 +177,7 @@ static struct atpic_intsrc atintrs[] = {
|
||||
INTSRC(15),
|
||||
};
|
||||
|
||||
CTASSERT(sizeof(atintrs) / sizeof(struct atpic_intsrc) == NUM_ISA_IRQS);
|
||||
CTASSERT(sizeof(atintrs) / sizeof(atintrs[0]) == NUM_ISA_IRQS);
|
||||
|
||||
static void
|
||||
atpic_enable_source(struct intsrc *isrc)
|
||||
@ -448,8 +448,8 @@ atpic_startup(void)
|
||||
* we have one and as an optimization to avoid masking edge
|
||||
* triggered interrupts. For the case that we don't have an ELCR,
|
||||
* it doesn't hurt to mask an edge triggered interrupt, so we
|
||||
* that is why we assume level trigger for any interrupt that we
|
||||
* aren't sure is edge triggered.
|
||||
* assume level trigger for any interrupt that we aren't sure is
|
||||
* edge triggered.
|
||||
*/
|
||||
if (elcr_probe() == 0) {
|
||||
using_elcr = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user