diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-04-05 15:17:42 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-04-05 18:47:41 +1000 |
commit | ecadbe689b689216553c12fa91b3b9b0296653b1 (patch) | |
tree | fcca1d53ff8c8c7e45ae5fd20e8e183ba16a614c | |
parent | 604f758b2cbf6629bb2ef3b0e0637ffd7dde472b (diff) | |
download | skiboot-ecadbe689b689216553c12fa91b3b9b0296653b1.zip skiboot-ecadbe689b689216553c12fa91b3b9b0296653b1.tar.gz skiboot-ecadbe689b689216553c12fa91b3b9b0296653b1.tar.bz2 |
core/cpufeatures: Fix setting DARN and SCV HWCAP feature bits
DARN and SCV has been assigned AT_HWCAP2 (32-63) bits:
#define PPC_FEATURE2_DARN 0x00200000 /* darn random number insn */
#define PPC_FEATURE2_SCV 0x00100000 /* scv syscall */
A cpufeatures-aware OS will not advertise these to userspace without
this patch.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
(cherry picked from commit e0c7c89b748312244c1b034b8b5279131add20bc)
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | core/cpufeatures.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/cpufeatures.c b/core/cpufeatures.c index fa946e4..e9d2daf 100644 --- a/core/cpufeatures.c +++ b/core/cpufeatures.c @@ -558,7 +558,7 @@ static const struct cpu_feature cpu_features_table[] = { CPU_P9, ISA_V3_0B, USABLE_OS|USABLE_PR, HV_NONE, OS_CUSTOM, - -1, PPC_BITLSHIFT(51), -1, + -1, PPC_BITLSHIFT(51), 52, NULL, }, /* @@ -612,7 +612,7 @@ static const struct cpu_feature cpu_features_table[] = { CPU_P9, ISA_V3_0B, USABLE_HV|USABLE_OS|USABLE_PR, HV_NONE, OS_NONE, - -1, -1, -1, + -1, -1, 53, NULL, }, /* |