mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
intr_handlers is an array of function pointers, not small structures.
Assert at compile time that structures which need to be a power of 2 in size really are.
This commit is contained in:
parent
22a59ab32d
commit
5e857a1806
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88638
@ -79,7 +79,10 @@
|
||||
|
||||
#define MAX_STRAY_LOG 5
|
||||
|
||||
struct intr_handler intr_handlers[NPIL];
|
||||
ASSERT_EQUAL(sizeof(struct intr_vector), 1 << IV_SHIFT);
|
||||
ASSERT_EQUAL(sizeof(struct iqe), 1 << IQE_SHIFT);
|
||||
|
||||
ih_func_t *intr_handlers[NPIL];
|
||||
struct intr_vector intr_vectors[NIV];
|
||||
|
||||
u_long intr_stray_count[NIV];
|
||||
@ -132,7 +135,7 @@ intr_setup(int pri, ih_func_t *ihf, int vec, iv_func_t *ivf, void *iva)
|
||||
intr_vectors[vec].iv_pri = pri;
|
||||
intr_vectors[vec].iv_vec = vec;
|
||||
}
|
||||
intr_handlers[pri].ih_func = ihf;
|
||||
intr_handlers[pri] = ihf;
|
||||
wrpr(pstate, ps, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user