Changeset 657 for soft


Ignore:
Timestamp:
Jul 22, 2015, 5:36:05 PM (9 years ago)
Author:
alain
Message:

Cosmetic.

Location:
soft/giet_vm/giet_drivers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/bdv_driver.c

    r630 r657  
    171171        // Set NORUN_MASK_IOC bit
    172172        static_scheduler_t* psched  = (static_scheduler_t*)_schedulers[x][y][p];
    173         unsigned int*       ptr     = &psched->context[ltid][CTX_NORUN_ID];
    174         _atomic_or( ptr , NORUN_MASK_IOC );
     173        _atomic_or( &psched->context[ltid][CTX_NORUN_ID] , NORUN_MASK_IOC );
    175174       
    176175        // launch transfer
  • soft/giet_vm/giet_drivers/hba_driver.c

    r630 r657  
    9898///////////////////////////////////////////////////////////////////////////////
    9999// This blocking fonction allocates a free command index to the task.
    100 // The hba_allocator_lock is used except in boot mode.
     100// The hba_allocator_lock is not used in boot mode.
    101101// It returns the allocated command index (between 0 and 31)
    102102///////////////////////////////////////////////////////////////////////////////
     
    448448            // Reset NORUN_MASK_IOC bit
    449449            static_scheduler_t* psched  = (static_scheduler_t*)_schedulers[x][y][p];
    450             unsigned int*       ptr     = &psched->context[ltid][CTX_NORUN_ID];
    451             _atomic_and( ptr , ~NORUN_MASK_IOC );
     450            _atomic_and( &psched->context[ltid][CTX_NORUN_ID] , ~NORUN_MASK_IOC );
    452451
    453452            // send a WAKUP WTI to processor running the waiting task
  • soft/giet_vm/giet_drivers/sdc_driver.c

    r630 r657  
    484484    for ( current = _ahci_cmd_ptr ; current != _ahci_cmd_ptw ; current++ )
    485485    {
    486         unsigned int ptr = current & 0x1F;
     486        unsigned int cmd_id = current & 0x1F;
    487487       
    488         if ( (pxci & (1<<ptr)) == 0 )    // command completed
     488        if ( (pxci & (1<<cmd_id)) == 0 )    // command completed
    489489        {
    490490            // increment the 32 bits variable _ahci_cmd_ptr
     
    492492
    493493            // save AHCI_PXIS register
    494             _ahci_status[ptr] = _sdc_get_register( AHCI_PXIS );
     494            _ahci_status[cmd_id] = _sdc_get_register( AHCI_PXIS );
    495495
    496496            // reset AHCI_PXIS register
     
    498498 
    499499            // identify waiting task
    500             unsigned int procid  = _ahci_gtid[ptr]>>16;
    501             unsigned int ltid    = _ahci_gtid[ptr] & 0xFFFF;
     500            unsigned int procid  = _ahci_gtid[cmd_id]>>16;
     501            unsigned int ltid    = _ahci_gtid[cmd_id] & 0xFFFF;
    502502            unsigned int cluster = procid >> P_WIDTH;
    503503            unsigned int x       = cluster >> Y_WIDTH;
     
    507507            // Reset NORUN_MASK_IOC bit
    508508            static_scheduler_t* psched  = (static_scheduler_t*)_schedulers[x][y][p];
    509             unsigned int*       ptr     = &psched->context[ltid][CTX_NORUN_ID];
    510             _atomic_and( ptr , ~NORUN_MASK_IOC );
     509            _atomic_and( &psched->context[ltid][CTX_NORUN_ID] , ~NORUN_MASK_IOC );
    511510
    512511            // send a WAKUP WTI to processor running the waiting task
     
    519518_printf("\n[DEBUG SDC] _sdc_isr() : command %d completed at cycle %d\n"
    520519        "  resume task %d running on P[%d,%d,%d] / status = %x\n",
    521         ptr , _get_proctime() ,
    522         ltid , x , y , p , _ahci_status[ptr] );
     520        cmd_id , _get_proctime() ,
     521        ltid , x , y , p , _ahci_status[cmd_id] );
    523522#endif
    524523        }
Note: See TracChangeset for help on using the changeset viewer.