Changeset 7f341820 in mainline for kernel/arch/mips32/src/mm/tlb.c


Ignore:
Timestamp:
2009-02-17T14:09:31Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
30e2bba
Parents:
85156d3
Message:

mips32: basic SMP support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/mm/tlb.c

    r85156d3 r7f341820  
    2727 */
    2828
    29 /** @addtogroup mips32mm       
     29/** @addtogroup mips32mm
    3030 * @{
    3131 */
     
    4242#include <arch.h>
    4343#include <symtab.h>
    44 #include <synch/spinlock.h>
     44#include <synch/mutex.h>
    4545#include <print.h>
    4646#include <debug.h>
     
    9393        pte_t *pte;
    9494        int pfrc;
    95 
     95       
    9696        badvaddr = cp0_badvaddr_read();
    97 
    98         spinlock_lock(&AS->lock);
     97       
     98        mutex_lock(&AS->lock);
    9999        asid = AS->asid;
    100         spinlock_unlock(&AS->lock);
    101 
     100        mutex_unlock(&AS->lock);
     101       
    102102        page_table_lock(AS, true);
    103 
     103       
    104104        pte = find_mapping_and_check(badvaddr, PF_ACCESS_READ, istate, &pfrc);
    105105        if (!pte) {
Note: See TracChangeset for help on using the changeset viewer.