Closed
Bug 963033
Opened 12 years ago
Closed 12 years ago
AArch64 support update for NSPR
Categories
(NSPR :: NSPR, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
4.10.4
People
(Reporter: marcin, Assigned: marcin)
References
Details
Attachments
(2 files)
843 bytes,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
1003 bytes,
patch
|
marcin
:
review+
ted
:
superreview+
wtc
:
checked-in+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release)
Build ID: 20140122030521
Assignee | ||
Updated•12 years ago
|
Attachment #8364281 -
Flags: review?(ted)
Comment 1•12 years ago
|
||
Comment on attachment 8364281 [details] [diff] [review]
aarch64-nspr.patch
Review of attachment 8364281 [details] [diff] [review]:
-----------------------------------------------------------------
This looks fine. I'll land it for you in the NSPR repo shortly, we'll need to sync that to mozilla-central to get it in Firefox trunk.
Attachment #8364281 -
Flags: review?(ted) → review+
Updated•12 years ago
|
Assignee: wtc → marcin
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•12 years ago
|
||
Comment on attachment 8364281 [details] [diff] [review]
aarch64-nspr.patch
Review of attachment 8364281 [details] [diff] [review]:
-----------------------------------------------------------------
::: mozilla-central.orig/nsprpub/pr/include/pratom.h
@@ +109,5 @@
> defined(__ia64__) || defined(__x86_64__) || \
> (defined(__powerpc__) && !defined(__powerpc64__)) || \
> (defined(__arm__) && \
> defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)) || \
> + defined(__alpha)) || defined(__aarch64__)))
Marcin: thank you for the patch.
This ifdef should match the corresponding ifdef in
nsprpub/pr/include/md/_linux.h. That ifdef looks like this:
#if defined(__arm__) || defined(__aarch64__)
#if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
/* Use GCC built-in functions */
#define _PR_HAVE_ATOMIC_OPS
#define _MD_INIT_ATOMIC()
#define _MD_ATOMIC_INCREMENT(ptr) __sync_add_and_fetch(ptr, 1)
#define _MD_ATOMIC_DECREMENT(ptr) __sync_sub_and_fetch(ptr, 1)
#define _MD_ATOMIC_SET(ptr, nv) __sync_lock_test_and_set(ptr, nv)
#define _MD_ATOMIC_ADD(ptr, i) __sync_add_and_fetch(ptr, i)
#elif defined(_PR_ARM_KUSER)
...
To match that, we would need to use this ifdef here:
((defined(__arm__) || defined(__aarch64__)) && \
defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)) || \
Is __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 always defined for __aarch64__?
Assignee | ||
Comment 3•12 years ago
|
||
According to toolchain guys I asked the answer is YES, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is always defined for __aarch64__.
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 5•12 years ago
|
||
Comment on attachment 8364281 [details] [diff] [review]
aarch64-nspr.patch
Review of attachment 8364281 [details] [diff] [review]:
-----------------------------------------------------------------
::: mozilla-central.orig/nsprpub/pr/include/pratom.h
@@ +109,5 @@
> defined(__ia64__) || defined(__x86_64__) || \
> (defined(__powerpc__) && !defined(__powerpc64__)) || \
> (defined(__arm__) && \
> defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)) || \
> + defined(__alpha)) || defined(__aarch64__)))
Marcin, Ted:
I think line 113:
defined(__alpha)) || defined(__aarch64__)))
should read
defined(__alpha) || defined(__aarch64__))))
I also suggest swapping alpha and aarch64 so that arm and
aarch64 are listed next to each other:
defined(__aarch64__) || defined(__alpha))))
Updated•12 years ago
|
Status: RESOLVED → REOPENED
OS: All → Linux
Priority: -- → P2
Hardware: All → Other
Resolution: FIXED → ---
Target Milestone: --- → 4.10.4
Comment 6•12 years ago
|
||
Attachment #8383133 -
Flags: superreview?(ted)
Attachment #8383133 -
Flags: review?(marcin)
Assignee | ||
Comment 7•12 years ago
|
||
Comment on attachment 8383133 [details] [diff] [review]
Fix parentheses.
Yes, you are right. I went outside of __linux__ block with original submission.
Attachment #8383133 -
Flags: review?(marcin) → review+
Updated•12 years ago
|
Attachment #8383133 -
Flags: superreview?(ted) → superreview+
Comment 8•12 years ago
|
||
Comment on attachment 8383133 [details] [diff] [review]
Fix parentheses.
https://hg.mozilla.org/projects/nspr/rev/0ddb64117375
Attachment #8383133 -
Flags: checked-in+
Updated•12 years ago
|
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•