Ignore:
Timestamp:
Oct 7, 2015, 12:02:48 PM (9 years ago)
Author:
alain
Message:

Introduce the _sys_fbf_size() function.
Modify the _sys_fbf_alloc() / _sys_fbf_release() functions
to allow all threads of a given vspace to access the frame buffer.
(replace the lock by a multi-threads allocator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_kernel/ctx_handler.c

    r709 r714  
    5858    if ( psched->context[ltid].slot[CTX_LOCKS_ID] & LOCKS_MASK_FAT )
    5959    {
     60       
    6061        _spin_lock_release( &_fat.fat_lock );
     62    }
     63
     64    // release FBF lock if taken
     65    if ( psched->context[ltid].slot[CTX_LOCKS_ID] & LOCKS_MASK_FBF )
     66    {
     67        _sys_fbf_release();
    6168    }
    6269
Note: See TracChangeset for help on using the changeset viewer.