Closed Bug 298103 Opened 20 years ago Closed 20 years ago

i386 (80386) native atomic operation support is possible

Categories

(NSPR :: NSPR, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: kevdig, Assigned: wtc)

References

Details

Attachments

(3 files)

User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.8b2) Gecko/20050601 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050606 It is possible to add native atomic operation support for the 386 without getting in the way of other processors. Reproducible: Always
This is a version of the NSPR atomic operations that will work on my trusty old 386 EISA machine. If negative numbers or counts greater than 2^31-1 are needed this implementation will break down.
These are the remaining code changes to enable a 386 compatible build. Mostly build changes and a new js_CompareAndSwap() for jslock.c. Adding '--target=i386-pc-linux-gnu' triggers a 386 build via the target_cpu variable.
This is the mozconfig file I used to get a 386 build. Only notable difference is the ac_add_options for --target.
Depends on: 298105
Thank you very much for the contribution. All the products using NSPR require or recommend that the CPU be Pentium or higher. Pentium is 586, right? If so, I don't want to check in the patches.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Solaris 8 still supports 486, and the NSS Solaris x86 binaries we deliver are the same for s8/s9/s10 , so technically they would be expected to run on 486. Not sure about 386 . 486 support was removed in Solaris 9. We'll be dropping Solaris 8 support soon, so the statement that we require Pentium or higher will become true at that point, but it isn't quite yet.
I don't want to support x86 CPUs older than Pentium. I'm willing to create a contrib directory in the NSPR source tree or web site for such patches.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: