>#define __l1_cache_aligned __attribute__((aligned (L1_CACHE_BYTES)))
>...
>
>}
>#ifdef SMP
>__l1_cache_aligned
>#endif
>mem_map_t;
>
>Looks even better, and is even maintainable.
Agreed should work fine, but I think gcc-2.7.2.3 is not able to 32bit
align (why?? and could somebody confirm or invalidate that?). Here
egcs-1.1.1 32bit align the fragment fine (tried in userspace now).
Thanks.
Andrea Arcangeli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/