summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-12-11 04:47:53 +0000
committerpeter <peter@FreeBSD.org>2003-12-11 04:47:53 +0000
commit20d7a03f75db9b3ab7ed52d5ef1bb5621b70b513 (patch)
treedc335949088ab5dae5ca4765b22a1b076e734cc0 /libexec
parent6edc4a1eb1e438d8bca422337979f029155961e7 (diff)
downloadFreeBSD-src-20d7a03f75db9b3ab7ed52d5ef1bb5621b70b513.zip
FreeBSD-src-20d7a03f75db9b3ab7ed52d5ef1bb5621b70b513.tar.gz
CACHE_LINE_SIZE is 64 on athlon and amd64 chips, not 32. This should
probably be 128 since that is what the hardware prefetch fill size is on both the p3, p4 and athlon* cpus.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/amd64/lockdflt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/amd64/lockdflt.c b/libexec/rtld-elf/amd64/lockdflt.c
index fd74cba..b3b4935 100644
--- a/libexec/rtld-elf/amd64/lockdflt.c
+++ b/libexec/rtld-elf/amd64/lockdflt.c
@@ -55,7 +55,7 @@
#include "debug.h"
#include "rtld.h"
-#define CACHE_LINE_SIZE 32
+#define CACHE_LINE_SIZE 64
#define WAFLAG 0x1 /* A writer holds the lock */
#define RC_INCR 0x2 /* Adjusts count of readers desiring lock */
OpenPOWER on IntegriCloud