Changeset e3f41b6 in mainline for arch/ia32/src/atomic.S


Ignore:
Timestamp:
2005-06-06T20:01:57Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b0bf501
Parents:
d47f0e1
Message:

Code cleanup in scheduler.c thread.c - removed unnecessary spinlock.
atomic_inc, atomic_dec moved to arch/atomic.h instead of arch/smp/atomic.h,
advisable to use even in non-smp mode.
Fixed atomic_inc, atomic_dec in mips architecture.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/atomic.S

    rd47f0e1 re3f41b6  
    3333        pushl %ebx
    3434        movl 8(%esp),%ebx
     35#ifdef __SMP__ 
    3536        lock incl (%ebx)
     37#else
     38        incl (%ebx)
     39#endif         
    3640        popl %ebx
    3741        ret
     
    4145        pushl %ebx
    4246        movl 8(%esp),%ebx
     47#ifdef __SMP__ 
    4348        lock decl (%ebx)
     49#else
     50        decl (%ebx)
     51#endif
    4452        popl %ebx
    4553        ret
Note: See TracChangeset for help on using the changeset viewer.