Ignore:
Timestamp:
Apr 6, 2015, 10:29:14 AM (10 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/include/reset_utils.h

    r962 r968  
    1616 ********************************************************************/
    1717
     18#define __cache_aligned__ __attribute__((aligned(CACHE_LINE_SIZE)))
     19
    1820/*
    1921 * cache line aligned disk block (sector) buffer
     
    2224{
    2325    char b[BLOCK_SIZE];
    24 } __attribute__((aligned(CACHE_LINE_SIZE)));
     26} __cache_aligned__;
    2527
    2628/********************************************************************
Note: See TracChangeset for help on using the changeset viewer.