Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64086
b: refs/heads/master
c: 8b224b8
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Aug 16, 2007
1 parent a7b7742 commit 73a55ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 7dc408808ad40b9a5d031966035713ed5d5153b8
refs/heads/master: 8b224b813aad0231af62dc75d056aae83c9d4d12
10 changes: 8 additions & 2 deletions trunk/include/asm-sparc64/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
#define HWCAP_SPARC_V9 16
#define HWCAP_SPARC_ULTRA3 32
#define HWCAP_SPARC_BLKINIT 64
#define HWCAP_SPARC_N2 128

/*
* These are used to set parameters in the core dumps.
Expand Down Expand Up @@ -155,8 +156,13 @@ static inline unsigned int sparc64_elf_hwcap(void)

if (tlb_type == cheetah || tlb_type == cheetah_plus)
cap |= HWCAP_SPARC_ULTRA3;
else if (tlb_type == hypervisor)
cap |= HWCAP_SPARC_BLKINIT;
else if (tlb_type == hypervisor) {
if (sun4v_chip_type == SUN4V_CHIP_NIAGARA1 ||
sun4v_chip_type == SUN4V_CHIP_NIAGARA2)
cap |= HWCAP_SPARC_BLKINIT;
if (sun4v_chip_type == SUN4V_CHIP_NIAGARA2)
cap |= HWCAP_SPARC_N2;
}

return cap;
}
Expand Down

0 comments on commit 73a55ec

Please sign in to comment.