Ignore:
Timestamp:
Jul 15, 2015, 6:17:41 PM (9 years ago)
Author:
bellefin
Message:

Introduce mmc distributed lock
The locks are distributed in the kernel heaps (one lock in each cluster) and there is a global table in the kernel data segment which contains the addresses of all the locks.
The _mmc_boot_mode variable is defined in boot.c and kernel_init.c and defines which kind of lock is used.
The distributed locks are initialized inside the kernel_init() function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/mmc_driver.h

    r496 r615  
    1111#include <hard_config.h>
    1212#include <kernel_locks.h>
     13#include <kernel_malloc.h>
    1314
    1415///////////////////////////////////////////////////////////////////////////////////
     
    124125///////////////////////////////////////////////////////////////////////////////////
    125126
     127extern void _mmc_init_locks();
     128
    126129extern unsigned int _mmc_instrument( unsigned int x,
    127130                                     unsigned int y,
Note: See TracChangeset for help on using the changeset viewer.