VirtualBox

Changeset 101780 in vbox for trunk/src/libs/xpcom18a4


Ignore:
Timestamp:
Nov 4, 2023 6:57:12 PM (15 months ago)
Author:
vboxsync
Message:

libs/xpcom: Switch to using our own atomics on Linux like we do on darwin, bugref:10545

Location:
trunk/src/libs/xpcom18a4
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/Makefile.kmk

    r101778 r101780  
    577577
    578578VBox-xpcom-nspr_SOURCES.linux = nsprpub/pr/src/md/unix/linux.c
    579 VBox-xpcom-nspr_SOURCES.linux.x86 = nsprpub/pr/src/md/unix/os_Linux_x86.s
    580 VBox-xpcom-nspr_SOURCES.linux.amd64 = nsprpub/pr/src/md/unix/os_Linux_x86_64.s
    581579
    582580VBox-xpcom-nspr_SOURCES.solaris = nsprpub/pr/src/md/unix/solaris.c
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/_linux.h

    r1 r101780  
    8989#define USE_DLFCN
    9090
    91 #if defined(__i386__)
    92 #define _PR_HAVE_ATOMIC_OPS
    93 #define _MD_INIT_ATOMIC()
    94 extern PRInt32 _PR_x86_AtomicIncrement(PRInt32 *val);
    95 #define _MD_ATOMIC_INCREMENT          _PR_x86_AtomicIncrement
    96 extern PRInt32 _PR_x86_AtomicDecrement(PRInt32 *val);
    97 #define _MD_ATOMIC_DECREMENT          _PR_x86_AtomicDecrement
    98 extern PRInt32 _PR_x86_AtomicAdd(PRInt32 *ptr, PRInt32 val);
    99 #define _MD_ATOMIC_ADD                _PR_x86_AtomicAdd
    100 extern PRInt32 _PR_x86_AtomicSet(PRInt32 *val, PRInt32 newval);
    101 #define _MD_ATOMIC_SET                _PR_x86_AtomicSet
    102 #endif
    103 
    104 #if defined(__ia64__)
    105 #define _PR_HAVE_ATOMIC_OPS
    106 #define _MD_INIT_ATOMIC()
    107 extern PRInt32 _PR_ia64_AtomicIncrement(PRInt32 *val);
    108 #define _MD_ATOMIC_INCREMENT          _PR_ia64_AtomicIncrement
    109 extern PRInt32 _PR_ia64_AtomicDecrement(PRInt32 *val);
    110 #define _MD_ATOMIC_DECREMENT          _PR_ia64_AtomicDecrement
    111 extern PRInt32 _PR_ia64_AtomicAdd(PRInt32 *ptr, PRInt32 val);
    112 #define _MD_ATOMIC_ADD                _PR_ia64_AtomicAdd
    113 extern PRInt32 _PR_ia64_AtomicSet(PRInt32 *val, PRInt32 newval);
    114 #define _MD_ATOMIC_SET                _PR_ia64_AtomicSet
    115 #endif
    116 
    117 #if defined(__x86_64__)
    118 #define _PR_HAVE_ATOMIC_OPS
    119 #define _MD_INIT_ATOMIC()
    120 extern PRInt32 _PR_x86_64_AtomicIncrement(PRInt32 *val);
    121 #define _MD_ATOMIC_INCREMENT          _PR_x86_64_AtomicIncrement
    122 extern PRInt32 _PR_x86_64_AtomicDecrement(PRInt32 *val);
    123 #define _MD_ATOMIC_DECREMENT          _PR_x86_64_AtomicDecrement
    124 extern PRInt32 _PR_x86_64_AtomicAdd(PRInt32 *ptr, PRInt32 val);
    125 #define _MD_ATOMIC_ADD                _PR_x86_64_AtomicAdd
    126 extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval);
    127 #define _MD_ATOMIC_SET                _PR_x86_64_AtomicSet
    128 #endif
     91#include "_iprt_atomic.h"
    12992
    13093#define USE_SETJMP
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette