diff options
author | kib <kib@FreeBSD.org> | 2016-03-29 19:56:48 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-03-29 19:56:48 +0000 |
commit | eb986c64f5239300e8fa17a18d24d0d3c574a259 (patch) | |
tree | 86b22a48ae0e34ddaf12afd9af570d03f0861d94 /sys/x86 | |
parent | 66f03b034f8db0da7e045710e306342b6805aef1 (diff) | |
download | FreeBSD-src-eb986c64f5239300e8fa17a18d24d0d3c574a259.zip FreeBSD-src-eb986c64f5239300e8fa17a18d24d0d3c574a259.tar.gz |
Type of the interrupt handlers on x86 cannot be expressed in C.
Simplify and unify placeholder type definitions.
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D5771
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/include/x86_var.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/x86/include/x86_var.h b/sys/x86/include/x86_var.h index c349913..46ce1a0 100644 --- a/sys/x86/include/x86_var.h +++ b/sys/x86/include/x86_var.h @@ -86,6 +86,13 @@ struct fpreg; struct dbreg; struct dumperinfo; +/* + * The interface type of the interrupt handler entry point cannot be + * expressed in C. Use simplest non-variadic function type as an + * approximation. + */ +typedef void alias_for_inthand_t(void); + void *alloc_fpusave(int flags); void busdma_swi(void); bool cpu_mwait_usable(void); |