Ignore:
Timestamp:
Oct 5, 2018, 12:08:35 AM (6 years ago)
Author:
alain
Message:

Introduction of the soclib_mty driver for the TSAR-LETI architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_ppm.c

    r457 r570  
    2727#include <hal_special.h>
    2828#include <printk.h>
    29 #include <spinlock.h>
     29#include <busylock.h>
    3030#include <process.h>
    3131#include <ppm.h>
     
    4646//////////////////////////////////////////////////////////////////////////////////////////
    4747
     48
    4849///////////////////////////////////////////
    4950error_t  hal_ppm_init( boot_info_t * info )
     
    5960
    6061        // initialize lock protecting the free_pages[] lists
    61         spinlock_init( &ppm->free_lock );
     62        busylock_init( &ppm->free_lock , LOCK_PPM_FREE );
    6263
    6364        // initialize lock protecting the dirty_pages list
    64         spinlock_init( &ppm->dirty_lock );
     65        queuelock_init( &ppm->dirty_lock , LOCK_PPM_DIRTY );
    6566
    6667        // initialize all free_pages[] lists as empty
Note: See TracChangeset for help on using the changeset viewer.