[SPARC64]: Add HWCAP_SPARC_BLKINIT elf capability flag for Niagara.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2006-02-17 10:14:38 -08:00
parent 3b3ab2eb9c
commit 97532f5982
1 changed files with 17 additions and 5 deletions

View File

@ -10,6 +10,7 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/spitfire.h>
#endif #endif
/* /*
@ -68,6 +69,7 @@
#define HWCAP_SPARC_MULDIV 8 #define HWCAP_SPARC_MULDIV 8
#define HWCAP_SPARC_V9 16 #define HWCAP_SPARC_V9 16
#define HWCAP_SPARC_ULTRA3 32 #define HWCAP_SPARC_ULTRA3 32
#define HWCAP_SPARC_BLKINIT 64
/* /*
* These are used to set parameters in the core dumps. * These are used to set parameters in the core dumps.
@ -145,11 +147,21 @@ typedef struct {
instruction set this cpu supports. */ instruction set this cpu supports. */
/* On Ultra, we support all of the v8 capabilities. */ /* On Ultra, we support all of the v8 capabilities. */
#define ELF_HWCAP ((HWCAP_SPARC_FLUSH | HWCAP_SPARC_STBAR | \ static inline unsigned int sparc64_elf_hwcap(void)
HWCAP_SPARC_SWAP | HWCAP_SPARC_MULDIV | \ {
HWCAP_SPARC_V9) | \ unsigned int cap = (HWCAP_SPARC_FLUSH | HWCAP_SPARC_STBAR |
((tlb_type == cheetah || tlb_type == cheetah_plus) ? \ HWCAP_SPARC_SWAP | HWCAP_SPARC_MULDIV |
HWCAP_SPARC_ULTRA3 : 0)) HWCAP_SPARC_V9);
if (tlb_type == cheetah || tlb_type == cheetah_plus)
cap |= HWCAP_SPARC_ULTRA3;
else if (tlb_type == hypervisor)
cap |= HWCAP_SPARC_BLKINIT;
return cap;
}
#define ELF_HWCAP sparc64_elf_hwcap();
/* This yields a string that ld.so will use to load implementation /* This yields a string that ld.so will use to load implementation
specific libraries for optimization. This is more specific in specific libraries for optimization. This is more specific in