lkml.org 
[lkml]   [2001]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 3DNOW optimization fix
As noted by Andreas Franck, the assembler instruction for
write prefetch is mistakenly a read prefetch. Below is for
linux-2.4.8-ac11 that corrects the error.

Regards
Anders Fugmann
--

--- linux/include/asm-i386/processor.h~ Sun Aug 26 01:18:12 2001
+++ linux/include/asm-i386/processor.h Sun Aug 26 01:22:36 2001
@@ -501,7 +502,7 @@

extern inline void prefetchw(const void *x)
{
- __asm__ __volatile__ ("prefetch (%0)" : : "r"(x));
+ __asm__ __volatile__ ("prefetchw (%0)" : : "r"(x));
}
#define spin_lock_prefetch(x) prefetchw(x)




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:58    [W:0.022 / U:3.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site