Ignore:
Timestamp:
Apr 6, 2015, 10:29:14 AM (9 years ago)
Author:
cfuguet
Message:

bugfix:tsar_boot: cache aligned structures should use the
CACHE_LINE_SIZE constant

  • Define a macro for the cache aligned attribute.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/drivers/reset_bdv.c

    r962 r968  
    5050
    5151////////////////////////////////////
    52 int reset_bdv_read( unsigned int lba,
    53                     void* buffer,
    54                     unsigned int count )
     52int reset_bdv_read( unsigned int lba, void* buffer, unsigned int count )
    5553{
    5654    // block_device configuration
    57     iowrite32( &ioc_address[BLOCK_DEVICE_BUFFER], (unsigned int) buffer );
     55    iowrite32( &ioc_address[BLOCK_DEVICE_BUFFER], (unsigned int)buffer );
    5856    iowrite32( &ioc_address[BLOCK_DEVICE_COUNT], count );
    5957    iowrite32( &ioc_address[BLOCK_DEVICE_LBA], lba );
     
    6159
    6260    //  trigger transfer
    63     iowrite32( &ioc_address[BLOCK_DEVICE_OP], ( unsigned int )
    64                BLOCK_DEVICE_READ );
     61    iowrite32( &ioc_address[BLOCK_DEVICE_OP],
     62               (unsigned int)BLOCK_DEVICE_READ );
    6563
    6664#if (RESET_HARD_CC == 0) || USE_IOB
     
    8280            break;
    8381        }
    84         if ( status == BLOCK_DEVICE_READ_ERROR   )
     82        if ( status == BLOCK_DEVICE_READ_ERROR )
    8583        {
    8684            reset_puts("ERROR during read on the BLK device\n");
Note: See TracChangeset for help on using the changeset viewer.