Page MenuHomeFreeBSD

Remove 'imen' global variable from atpic(4).
ClosedPublic

Authored by jhb on Aug 21 2018, 10:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 10, 7:00 PM
Unknown Object (File)
Sun, Apr 28, 10:14 PM
Unknown Object (File)
Sun, Apr 28, 12:19 PM
Unknown Object (File)
Jan 13 2024, 1:08 PM
Unknown Object (File)
Dec 20 2023, 2:21 AM
Unknown Object (File)
Nov 15 2023, 8:54 PM
Unknown Object (File)
Oct 31 2023, 11:52 AM
Unknown Object (File)
Oct 27 2023, 7:51 AM
Subscribers

Details

Summary

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.

Test Plan
  • booted an i386 kernel with hint.apic.0.disabled under bhyve.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable