Changeset 879585a3 in mainline for kernel/arch/ppc32/src/mm/as.c


Ignore:
Timestamp:
2007-03-31T22:22:50Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
31d8e10
Parents:
563c2dd
Message:

Simplify synchronization in as_switch().
The function was oversynchronized, which
was causing deadlocks on the address
space mutex.

Now, address spaces can only be switched
when the asidlock is held. This also protects
stealing of ASIDs. No other synchronization
is necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/mm/as.c

    r563c2dd r879585a3  
    5555{
    5656        asid_t asid;
    57         ipl_t ipl;
    5857        uint32_t sr;
    5958
    60         ipl = interrupts_disable();
    61         spinlock_lock(&as->lock);
    62        
    6359        asid = as->asid;
    6460       
     
    8076                );
    8177        }
    82        
    83         spinlock_unlock(&as->lock);
    84         interrupts_restore(ipl);
    8578}
    8679
Note: See TracChangeset for help on using the changeset viewer.