Page MenuHomeFreeBSD

Simplify the inthand_t type for x86.
ClosedPublic

Authored by kib on Mar 29 2016, 8:52 AM.
Tags
None
Referenced Files
F157094657: D5771.id14723.diff
Mon, May 18, 10:11 AM
Unknown Object (File)
Sun, May 17, 4:26 AM
Unknown Object (File)
Tue, Apr 28, 6:35 PM
Unknown Object (File)
Tue, Apr 28, 6:26 PM
Unknown Object (File)
Tue, Apr 28, 3:48 PM
Unknown Object (File)
Sun, Apr 26, 3:06 PM
Unknown Object (File)
Apr 18 2026, 4:02 AM
Unknown Object (File)
Apr 17 2026, 8:55 PM
Subscribers

Details

Summary

Types for the x86 interrupt handler entry points cannot be expressed in C. For i386, the existing type is some approximation, lacking __stdcall attribute and still being wrong for the return type. For amd64, it cannot be even approximated.

Instead, use void (*)(void) which equally serves the purpose, is simpler and allows to unify i386 and amd64.

Diff Detail

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

Event Timeline

kib retitled this revision from to Simplify the inthand_t type for x86..
kib updated this object.
kib edited the test plan for this revision. (Show Details)
kib added reviewers: jhb, emaste.
kib set the repository for this revision to rS FreeBSD src repository - subversion.
jhb edited edge metadata.

Fine with me. The things can't be written directly in C anyway so trying to have a fancy prototype is rather pointless.

This revision is now accepted and ready to land.Mar 29 2016, 3:12 PM
This revision was automatically updated to reflect the committed changes.