]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 338148: Remove 'imen' global variable from atpic(4).
authorjhb <jhb@FreeBSD.org>
Tue, 30 Oct 2018 19:10:41 +0000 (19:10 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 30 Oct 2018 19:10:41 +0000 (19:10 +0000)
commit5327d4aef7dbf57606ed39fa370f8b4bd51c52dc
treeceda81860c6d012942f7de1a4bc1daacd82063b4
parente51a2365bb6f7f20df9b9be6b7bac1c09bcb8ced
MFC 338148: 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 individual 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.
sys/x86/isa/atpic.c
sys/x86/isa/icu.h