Ignore:
Timestamp:
Jul 4, 2012, 2:51:18 PM (12 years ago)
Author:
alain
Message:

Introducing various modifications in kernel initialisation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/libs/spin_lock.c

    r159 r165  
    2828// If the lock is already taken a random delay is introduced before retry.
    2929///////////////////////////////////////////////////////////////////////////////////
    30 void lock_acquire( giet_lock_t* lock)
     30void lock_acquire( giet_lock_t* lock )
    3131{
    32     unsigned in*t       plock = &lock->value;
     32    unsigned int*       plock = &lock->value;
    3333 
    3434    asm volatile (
     
    4141
    4242            "giet_lock_delay:                           \n"
    43             "jal  rand                                  \n" /* rand() system call */
     43            "jal  giet_rand                                 \n" /* giet_rand() system call */
    4444            "nop                                                        \n"
    45             "andi $4,   $2,     0xFF                    \n"     /* $4 <= random delay < 256 cycles */
     45            "andi $4,   $2,     0xFF                    \n"     /* $4 <= delay < 256 cycles */
    4646
    4747            "giet_lock_loop:                            \n"
Note: See TracChangeset for help on using the changeset viewer.