]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove 'imen' global variable from atpic(4).
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 21 Aug 2018 17:13:51 +0000 (17:13 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 21 Aug 2018 17:13:51 +0000 (17:13 +0000)
commit62a08214bca8e288712bfb99aa8ed42c8daeae08
tree95e0ac7456313797906653d445fabf9b70ea4257
parent541075a618224e50431824d139c3e5fbdc3cfe7e
Remove 'imen' global variable from atpic(4).

In pre-SMPng, the global 'imen' was used to track mask state of the
hardware interrupts and was aligned to the masks used by spl*().
When the atpic code was converted to using the x86 interrupt source
abstraction, the global 'imen' was preserved by having each PIC
instance point to an invididual byte in the global 'imen' to hold its
8-bit interrupt mask.  The global 'imen' is no longer used for
anything however, so rather than storing pointers in 'struct atpic',
just store the individual 8-bit mask for each PIC as a char.

While here, convert the ATPIC macro to using C99 initializers.

Reviewed by: kib, imp
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D16827
sys/x86/isa/atpic.c
sys/x86/isa/icu.h