diff options
| author | Richard Lowe <richlowe@richlowe.net> | 2011-05-15 21:34:10 +0100 |
|---|---|---|
| committer | Richard Lowe <richlowe@richlowe.net> | 2011-05-15 21:34:10 +0100 |
| commit | 6b7143d774683daf27dfb2e93ab48d1ade1a3477 (patch) | |
| tree | fd02f5632a9d915059daa631435065339fb064db /usr/src/uts/sparc/asm/cpu.h | |
| parent | 9b7d742f0ee8ff89c05a8b5275d11359920ec60f (diff) | |
| download | illumos-joyent-6b7143d774683daf27dfb2e93ab48d1ade1a3477.tar.gz | |
2251 kernel inlines should support gcc 4
Reviewed by: Andrew Stormont <Andrew.Stormont@nexenta.com>
Reviewed by: Milan Jurik <milan.jurik@xylab.cz>
Reviewed by: Dan McDonald <danmcd@nexenta.com>
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Reviewed by: Gordon Ross <gwr@nexenta.com>
Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/uts/sparc/asm/cpu.h')
| -rw-r--r-- | usr/src/uts/sparc/asm/cpu.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/uts/sparc/asm/cpu.h b/usr/src/uts/sparc/asm/cpu.h index 12523a475d..a5ac20f33e 100644 --- a/usr/src/uts/sparc/asm/cpu.h +++ b/usr/src/uts/sparc/asm/cpu.h @@ -27,6 +27,7 @@ #ifndef _ASM_CPU_H #define _ASM_CPU_H +#include <sys/ccompile.h> #include <sys/types.h> #ifdef __cplusplus @@ -35,7 +36,7 @@ extern "C" { #if !defined(__lint) && defined(__GNUC__) -extern __inline__ void +extern __GNU_INLINE void prefetch_read_many(void *addr) { #if defined(__sparcv9) @@ -48,7 +49,7 @@ prefetch_read_many(void *addr) #endif } -extern __inline__ void +extern __GNU_INLINE void prefetch_read_once(void *addr) { #if defined(__sparcv9) @@ -61,7 +62,7 @@ prefetch_read_once(void *addr) #endif } -extern __inline__ void +extern __GNU_INLINE void prefetch_write_many(void *addr) { #if defined(__sparcv9) @@ -74,7 +75,7 @@ prefetch_write_many(void *addr) #endif } -extern __inline__ void +extern __GNU_INLINE void prefetch_write_once(void *addr) { #if defined(__sparcv9) |
