FreeBSD Bugzilla – Attachment 209799 Details for
Bug 242521
security/nss: fix build on powerpc*
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
nss.patch (text/plain), 1.11 KB, created by
Piotr Kubaj
on 2019-12-09 10:27:14 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2019-12-09 10:27:14 UTC
Size:
1.11 KB
patch
obsolete
>Index: files/patch-lib_freebl_blinit.c >=================================================================== >--- files/patch-lib_freebl_blinit.c (revision 519572) >+++ files/patch-lib_freebl_blinit.c (working copy) >@@ -2,9 +2,9 @@ > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240037 > >---- lib/freebl/blinit.c.orig 2019-08-30 15:46:32 UTC >+--- lib/freebl/blinit.c.orig 2019-12-09 09:42:55 UTC > +++ lib/freebl/blinit.c >-@@ -163,12 +163,14 @@ CheckARMSupport() >+@@ -164,12 +164,14 @@ CheckARMSupport() > #ifndef ID_AA64ISAR0_SHA2_VAL > #define ID_AA64ISAR0_SHA2_VAL ID_AA64ISAR0_SHA2 > #endif >@@ -25,3 +25,16 @@ > #endif /* defined(__linux__) */ > /* aarch64 must support NEON. */ > arm_neon_support_ = disable_arm_neon == NULL; >+@@ -405,7 +407,12 @@ CheckPPCSupport() >+ { >+ char *disable_hw_crypto = PR_GetEnvSecure("NSS_DISABLE_PPC_GHASH"); >+ >++#if defined(__linux__) >+ long hwcaps = getauxval(AT_HWCAP2); >++#elif defined(__FreeBSD__) >++ long hwcaps; >++ elf_aux_info(AT_HWCAP2, &hwcaps, sizeof(hwcaps)); >++#endif >+ >+ ppc_crypto_support_ = hwcaps & PPC_FEATURE2_VEC_CRYPTO && disable_hw_crypto == NULL; >+ }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 242521
:
209799
|
209861
|
209871
|
209872