diff options
author | Dave Plauger <Dave.Plauger@Sun.COM> | 2009-01-05 12:41:54 -0500 |
---|---|---|
committer | Dave Plauger <Dave.Plauger@Sun.COM> | 2009-01-05 12:41:54 -0500 |
commit | 26a04d6751d8dbdcf709884101e1cb3d48723af2 (patch) | |
tree | 9b192016878506dea1758936a02579fdc7655e94 /usr/src/uts/intel/asm | |
parent | 89dc44ce9705974a8bc4a39f1e878a0491a5be61 (diff) | |
download | illumos-gate-26a04d6751d8dbdcf709884101e1cb3d48723af2.tar.gz |
6788508 Fix for 6555476 (pcacheset_cmp is inefficient) breaks VIA C3 systems
Diffstat (limited to 'usr/src/uts/intel/asm')
-rw-r--r-- | usr/src/uts/intel/asm/cpu.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/src/uts/intel/asm/cpu.h b/usr/src/uts/intel/asm/cpu.h index 4c63e4fa8b..937c3c4103 100644 --- a/usr/src/uts/intel/asm/cpu.h +++ b/usr/src/uts/intel/asm/cpu.h @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -118,15 +118,19 @@ extern __inline__ void __swapgs(void) /* * prefetch 64 bytes + * prefetch is an SSE extension which is not supported on + * older 32-bit processors, so define this as a no-op for now */ extern __inline__ void prefetch64(caddr_t addr) { +#if defined(__amd64) __asm__ __volatile__( "prefetcht0 (%0);" "prefetcht0 32(%0)" : /* no output */ : "r" (addr)); +#endif /* __amd64 */ } #endif /* __i386 || __amd64 */ |