diff options
Diffstat (limited to 'meta/recipes-support/nspr/nspr/0002-Add-nios2-support.patch')
-rw-r--r-- | meta/recipes-support/nspr/nspr/0002-Add-nios2-support.patch | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/meta/recipes-support/nspr/nspr/0002-Add-nios2-support.patch b/meta/recipes-support/nspr/nspr/0002-Add-nios2-support.patch index 23228067ec..3a04d426a8 100644 --- a/meta/recipes-support/nspr/nspr/0002-Add-nios2-support.patch +++ b/meta/recipes-support/nspr/nspr/0002-Add-nios2-support.patch | |||
@@ -12,11 +12,11 @@ Upstream-Status: Submitted [ https://bugzilla.mozilla.org/show_bug.cgi?id=124442 | |||
12 | nspr/pr/include/md/_linux.h | 14 ++++++++++++++ | 12 | nspr/pr/include/md/_linux.h | 14 ++++++++++++++ |
13 | 2 files changed, 59 insertions(+) | 13 | 2 files changed, 59 insertions(+) |
14 | 14 | ||
15 | diff --git a/pr/include/md/_linux.cfg b/nspr/pr/include/md/_linux.cfg | 15 | Index: nspr/pr/include/md/_linux.cfg |
16 | index 8cbf0cb..150676b 100644 | 16 | =================================================================== |
17 | --- a/pr/include/md/_linux.cfg | 17 | --- nspr.orig/pr/include/md/_linux.cfg |
18 | +++ b/pr/include/md/_linux.cfg | 18 | +++ nspr/pr/include/md/_linux.cfg |
19 | @@ -972,6 +972,51 @@ | 19 | @@ -975,6 +975,51 @@ |
20 | #define PR_BYTES_PER_WORD_LOG2 2 | 20 | #define PR_BYTES_PER_WORD_LOG2 2 |
21 | #define PR_BYTES_PER_DWORD_LOG2 3 | 21 | #define PR_BYTES_PER_DWORD_LOG2 3 |
22 | 22 | ||
@@ -68,10 +68,10 @@ index 8cbf0cb..150676b 100644 | |||
68 | #elif defined(__or1k__) | 68 | #elif defined(__or1k__) |
69 | 69 | ||
70 | #undef IS_LITTLE_ENDIAN | 70 | #undef IS_LITTLE_ENDIAN |
71 | diff --git a/pr/include/md/_linux.h b/nspr/pr/include/md/_linux.h | 71 | Index: nspr/pr/include/md/_linux.h |
72 | index d378db5..18260be 100644 | 72 | =================================================================== |
73 | --- a/pr/include/md/_linux.h | 73 | --- nspr.orig/pr/include/md/_linux.h |
74 | +++ b/pr/include/md/_linux.h | 74 | +++ nspr/pr/include/md/_linux.h |
75 | @@ -55,6 +55,8 @@ | 75 | @@ -55,6 +55,8 @@ |
76 | #define _PR_SI_ARCHITECTURE "avr32" | 76 | #define _PR_SI_ARCHITECTURE "avr32" |
77 | #elif defined(__m32r__) | 77 | #elif defined(__m32r__) |
@@ -80,8 +80,8 @@ index d378db5..18260be 100644 | |||
80 | +#define _PR_SI_ARCHITECTURE "nios2" | 80 | +#define _PR_SI_ARCHITECTURE "nios2" |
81 | #elif defined(__or1k__) | 81 | #elif defined(__or1k__) |
82 | #define _PR_SI_ARCHITECTURE "or1k" | 82 | #define _PR_SI_ARCHITECTURE "or1k" |
83 | #else | 83 | #elif defined(__riscv) && (__riscv_xlen == 32) |
84 | @@ -125,6 +127,18 @@ extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval); | 84 | @@ -129,6 +131,18 @@ extern PRInt32 _PR_x86_64_AtomicSet(PRIn |
85 | #define _MD_ATOMIC_SET _PR_x86_64_AtomicSet | 85 | #define _MD_ATOMIC_SET _PR_x86_64_AtomicSet |
86 | #endif | 86 | #endif |
87 | 87 | ||
@@ -100,6 +100,3 @@ index d378db5..18260be 100644 | |||
100 | #if defined(__or1k__) | 100 | #if defined(__or1k__) |
101 | #if defined(__GNUC__) | 101 | #if defined(__GNUC__) |
102 | /* Use GCC built-in functions */ | 102 | /* Use GCC built-in functions */ |
103 | -- | ||
104 | 2.7.0.rc3 | ||
105 | |||