Page MenuHomeFreeBSD

ifuncs: Include <machine/ifunc.h> instead of <x86/ifunc.h>
ClosedPublic

Authored by olce on Thu, Oct 1, 9:25 AM.
Tags
None
Referenced Files
F174679271: D60194.diff
Mon, Oct 5, 3:43 AM
F174661463: D60194.id188300.diff
Mon, Oct 5, 1:06 AM
F174660597: D60194.id188342.diff
Mon, Oct 5, 12:58 AM
Unknown Object (File)
Sun, Oct 4, 10:58 AM
Unknown Object (File)
Sun, Oct 4, 3:53 AM
Unknown Object (File)
Sun, Oct 4, 3:29 AM
Unknown Object (File)
Sun, Oct 4, 2:24 AM
Unknown Object (File)
Sat, Oct 3, 11:03 PM
Subscribers

Details

Summary

All architectures have been providing an 'ifunc.h' header with
DEFINE_IFUNC() et alter working both in kernel and userland since commit
cf41d1113377 ("riscv: implement kernel ifunc resolution"), and separate
<i386/ifunc.h> and <amd64/ifunc.h> headers were introduced in commit
2b1db07bec92 ("x86: add machine/ifunc.h"), so stop including
<x86/ifunc.h> directly and use the common <machine/ifunc.h> idiom.

While here, re-order includes in the blocks featuring <x86/ifunc.h>,
which requires fixing <x86/apicvar.h> so that it can be included before
<machine/intr_machdep.h>.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77574
Build 74457: arc lint + arc unit