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_boot/boot.c

    r590 r615  
    164164unsigned int        _tty0_boot_mode = 1;
    165165
     166// boot code does not use distributed locks to protect MMC
     167__attribute__((section(".kdata")))
     168unsigned int        _mmc_boot_mode = 1;
     169
    166170// boot code does not uses a lock to protect HBA command allocator
    167171__attribute__((section(".kdata")))
Note: See TracChangeset for help on using the changeset viewer.