-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e78cdf0
commit 3db7f13
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
patches/boringssl/0001-boringssl-Add support for loongarch.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
diff --git a/crypto/fipsmodule/rand/getrandom_fillin.h b/crypto/fipsmodule/rand/getrandom_fillin.h | ||
index 7c2b62e93487b772990fddc1905f22d4cfaee4a4..9c18fe1eeef6ce09c027abaa5355efab449fce4c 100644 | ||
--- a/crypto/fipsmodule/rand/getrandom_fillin.h | ||
+++ b/crypto/fipsmodule/rand/getrandom_fillin.h | ||
@@ -30,6 +30,8 @@ | ||
#define EXPECTED_NR_getrandom 278 | ||
#elif defined(OPENSSL_ARM) | ||
#define EXPECTED_NR_getrandom 384 | ||
+#elif defined(OPENSSL_LOONG64) | ||
+#define EXPECTED_NR_getrandom 278 | ||
#elif defined(OPENSSL_RISCV64) | ||
#define EXPECTED_NR_getrandom 278 | ||
#endif | ||
|
||
diff --git a/include/openssl/target.h b/include/openssl/target.h | ||
index 7c2b62e93487b772990fddc1905f22d4cfaee4a4..9c18fe1eeef6ce09c027abaa5355efab449fce4c 100644 | ||
--- a/include/openssl/target.h | ||
+++ b/include/openssl/target.h | ||
@@ -34,6 +34,9 @@ | ||
#elif defined(__ARMEL__) || defined(_M_ARM) | ||
#define OPENSSL_32_BIT | ||
#define OPENSSL_ARM | ||
+#elif defined(__loongarch64) | ||
+#define OPENSSL_64_BIT | ||
+#define OPENSSL_LOONG64 | ||
#elif defined(__MIPSEL__) && !defined(__LP64__) | ||
#define OPENSSL_32_BIT | ||
#define OPENSSL_MIPS | ||
|