Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21485
b: refs/heads/master
c: 97532f5
h: refs/heads/master
i:
  21483: d876a2e
v: v3
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent a0ab885 commit c686508
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b3ab2eb9cf07ef1bc7a676c19aab994adb41a87
refs/heads/master: 97532f598273d03cab8bb5206669b6fdd654eb63
22 changes: 17 additions & 5 deletions trunk/include/asm-sparc64/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#ifdef __KERNEL__
#include <asm/processor.h>
#include <asm/uaccess.h>
#include <asm/spitfire.h>
#endif

/*
Expand Down Expand Up @@ -68,6 +69,7 @@
#define HWCAP_SPARC_MULDIV 8
#define HWCAP_SPARC_V9 16
#define HWCAP_SPARC_ULTRA3 32
#define HWCAP_SPARC_BLKINIT 64

/*
* These are used to set parameters in the core dumps.
Expand Down Expand Up @@ -145,11 +147,21 @@ typedef struct {
instruction set this cpu supports. */

/* On Ultra, we support all of the v8 capabilities. */
#define ELF_HWCAP ((HWCAP_SPARC_FLUSH | HWCAP_SPARC_STBAR | \
HWCAP_SPARC_SWAP | HWCAP_SPARC_MULDIV | \
HWCAP_SPARC_V9) | \
((tlb_type == cheetah || tlb_type == cheetah_plus) ? \
HWCAP_SPARC_ULTRA3 : 0))
static inline unsigned int sparc64_elf_hwcap(void)
{
unsigned int cap = (HWCAP_SPARC_FLUSH | HWCAP_SPARC_STBAR |
HWCAP_SPARC_SWAP | HWCAP_SPARC_MULDIV |
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
specific libraries for optimization. This is more specific in
Expand Down

0 comments on commit c686508

Please sign in to comment.