Ignore:
Timestamp:
Oct 4, 2018, 11:48:51 PM (6 years ago)
Author:
alain
Message:

Complete restructuration of kernel locks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_pic.c

    r483 r565  
    2828#include <string.h>
    2929#include <thread.h>
     30#include <remote_busylock.h>
    3031#include <hal_drivers.h>
    3132#include <dev_pic.h>
     
    216217}
    217218
    218 /////////////////////////////
     219///////////////////////////////////
    219220void dev_pic_inputs_display( void )
    220221{
    221222    uint32_t k;
    222     uint32_t save_sr;
    223223
    224224    // get pointers on TXT0 chdev
     
    231231
    232232    // get TXT0 lock in busy waiting mode
    233     remote_spinlock_lock_busy( lock_xp , &save_sr );
     233    remote_busylock_acquire( lock_xp );
    234234
    235235    nolock_printk("\n***** iopic_inputs\n");
     
    253253
    254254    // release TXT0 lock
    255     remote_spinlock_unlock_busy( lock_xp , save_sr );
    256 }
    257 
    258 
     255    remote_busylock_release( lock_xp );
     256}
     257
     258
Note: See TracChangeset for help on using the changeset viewer.