From d1f2f1c3f3e9e3ce60528824509b42c1a9424b70 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sun, 19 Apr 2009 23:02:50 +0000 Subject: Now that the kernel defines CACHE_LINE_SIZE in machine/param.h, use that definition in the custom locking code for the run-time linker rather than local definitions. Pointed out by: tinderbox MFC after: 2 weeks --- libexec/rtld-elf/amd64/rtld_machdep.h | 2 -- libexec/rtld-elf/arm/rtld_machdep.h | 2 -- libexec/rtld-elf/i386/rtld_machdep.h | 2 -- libexec/rtld-elf/ia64/rtld_machdep.h | 2 -- libexec/rtld-elf/mips/rtld_machdep.h | 2 -- libexec/rtld-elf/powerpc/rtld_machdep.h | 2 -- libexec/rtld-elf/sparc64/rtld_machdep.h | 2 -- 7 files changed, 14 deletions(-) (limited to 'libexec') diff --git a/libexec/rtld-elf/amd64/rtld_machdep.h b/libexec/rtld-elf/amd64/rtld_machdep.h index c688eb1746d41..301eb0c59e1da 100644 --- a/libexec/rtld-elf/amd64/rtld_machdep.h +++ b/libexec/rtld-elf/amd64/rtld_machdep.h @@ -32,8 +32,6 @@ #include #include -#define CACHE_LINE_SIZE 64 - struct Struct_Obj_Entry; /* Return the address of the .dynamic section in the dynamic linker. */ diff --git a/libexec/rtld-elf/arm/rtld_machdep.h b/libexec/rtld-elf/arm/rtld_machdep.h index dd046a9d5ae83..8364afa2e71ad 100644 --- a/libexec/rtld-elf/arm/rtld_machdep.h +++ b/libexec/rtld-elf/arm/rtld_machdep.h @@ -32,8 +32,6 @@ #include #include -#define CACHE_LINE_SIZE 32 - struct Struct_Obj_Entry; /* Return the address of the .dynamic section in the dynamic linker. */ diff --git a/libexec/rtld-elf/i386/rtld_machdep.h b/libexec/rtld-elf/i386/rtld_machdep.h index cbb13eb8595c0..9b3dcdf209d72 100644 --- a/libexec/rtld-elf/i386/rtld_machdep.h +++ b/libexec/rtld-elf/i386/rtld_machdep.h @@ -32,8 +32,6 @@ #include #include -#define CACHE_LINE_SIZE 32 - struct Struct_Obj_Entry; /* Return the address of the .dynamic section in the dynamic linker. */ diff --git a/libexec/rtld-elf/ia64/rtld_machdep.h b/libexec/rtld-elf/ia64/rtld_machdep.h index 5cb8bc27acbd9..5af9602f7649b 100644 --- a/libexec/rtld-elf/ia64/rtld_machdep.h +++ b/libexec/rtld-elf/ia64/rtld_machdep.h @@ -32,8 +32,6 @@ #include #include -#define CACHE_LINE_SIZE 128 - /* * Macros for cracking ia64 function pointers. */ diff --git a/libexec/rtld-elf/mips/rtld_machdep.h b/libexec/rtld-elf/mips/rtld_machdep.h index dd046a9d5ae83..8364afa2e71ad 100644 --- a/libexec/rtld-elf/mips/rtld_machdep.h +++ b/libexec/rtld-elf/mips/rtld_machdep.h @@ -32,8 +32,6 @@ #include #include -#define CACHE_LINE_SIZE 32 - struct Struct_Obj_Entry; /* Return the address of the .dynamic section in the dynamic linker. */ diff --git a/libexec/rtld-elf/powerpc/rtld_machdep.h b/libexec/rtld-elf/powerpc/rtld_machdep.h index 38e105dd2832c..f5f21a41fad8a 100644 --- a/libexec/rtld-elf/powerpc/rtld_machdep.h +++ b/libexec/rtld-elf/powerpc/rtld_machdep.h @@ -32,8 +32,6 @@ #include #include -#define CACHE_LINE_SIZE 32 - struct Struct_Obj_Entry; /* Return the address of the .dynamic section in the dynamic linker. */ diff --git a/libexec/rtld-elf/sparc64/rtld_machdep.h b/libexec/rtld-elf/sparc64/rtld_machdep.h index 1556758426604..a1610718ba18b 100644 --- a/libexec/rtld-elf/sparc64/rtld_machdep.h +++ b/libexec/rtld-elf/sparc64/rtld_machdep.h @@ -32,8 +32,6 @@ #include #include -#define CACHE_LINE_SIZE 128 - struct Struct_Obj_Entry; /* Return the address of the .dynamic section in the dynamic linker. */ -- cgit v1.3