diff options
author | jg <none@none> | 2005-07-25 12:38:32 -0700 |
---|---|---|
committer | jg <none@none> | 2005-07-25 12:38:32 -0700 |
commit | bcbe91555f717d9e65cf05794295dfe172334908 (patch) | |
tree | d2a19ed3ddebb39fadada619d91004bb9f2d1be2 /usr/src/uts/intel/asm/sunddi.h | |
parent | 884db8ab1a530d69f98f3ed409af0155ed5ae8ea (diff) | |
download | illumos-joyent-bcbe91555f717d9e65cf05794295dfe172334908.tar.gz |
6274708 gcc and boot really don't get along
Diffstat (limited to 'usr/src/uts/intel/asm/sunddi.h')
-rw-r--r-- | usr/src/uts/intel/asm/sunddi.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr/src/uts/intel/asm/sunddi.h b/usr/src/uts/intel/asm/sunddi.h index 78166905ef..0a6bb3b696 100644 --- a/usr/src/uts/intel/asm/sunddi.h +++ b/usr/src/uts/intel/asm/sunddi.h @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -105,6 +105,15 @@ extern __inline__ void outl(int port, uint32_t value) : "a" (value), "d" (port16)); } +#if defined(_BOOT) + +extern __inline__ void sync_instruction_memory(caddr_t v, size_t len) +{ + __asm__ __volatile__("nop"); +} + +#endif /* _BOOT */ + #endif /* __i386 || __amd64 */ #endif /* !__lint && __GNUC__ */ |