Ignore:
Timestamp:
Jan 27, 2015, 5:20:19 PM (9 years ago)
Author:
cfuguet
Message:

tsar_boot: using global variable for the block device block cache

  • Some GCC versions have a problem to align as indicated with the attribute(aligned()) macro the functions' local variables. Therefore, using a global variable instead of a static local variable for the block cache because this last must be aligned to a cache line.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/src/reset_elf_loader.c

    r758 r930  
    1616#include <defs.h>
    1717
     18extern int blk_buf_idx;
     19
    1820///////////////////////////////////////////////////////////////////////////////
    1921void * reset_elf_loader(size_t lba)
     
    2527    reset_putd( proctime() );
    2628    reset_puts("\n");
     29
     30    /*
     31     * Init the cache block index
     32     */
     33    blk_buf_idx = -1;
    2734
    2835    /*
Note: See TracChangeset for help on using the changeset viewer.