This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001796] AT91/ARM9 architecure extension


Please do not reply to this email, use the link below.

http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001796

--- Comment #2 from Bernd Edlinger <bernd.edlinger@hotmail.de> ---
Created attachment 2126
  --> http://bugs.ecos.sourceware.org/attachment.cgi?id=2126&action=edit
fix for kernel/current/tests/kcache2.c

This fixes some collateral damage in kcache2.c:

Some very small targets failed to compile this test sample.
Although the targets do not have any cache, kcache2.c may overflow
the .bss segment with a 64K test variable.

Reason: in preparation to enabling the DATA Cache, the macro
HAL_DCACHE_LINE_SIZE is now always defined to a power of 2.

This is suitable to place cache aligned variables with
__attribute__((aligned(HAL_DCACHE_LINE_SIZE)))

If the hardware does not support DCACHE however, HAL_DCACHE_LINE_SIZE is 4,
thus the variable is simply word-aligned.

Unfortunately the kcache2.c has a conditional code like
#ifdef HAL_DCACHE_LINE_SIZE
but it should better use #ifdef HAL_DCACHE_SIZE for this purpose.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]