cache: fix bugs in HAL_DCACHE_INVALIDATE()
commit2744a552094d377bbfc524d7e53ed465c645bdae
authoroyvind <oyvind@2333b21a-1c27-0410-8132-afba56cb5048>
Wed, 18 Nov 2009 10:15:10 +0000 (18 10:15 +0000)
committeroyvind <oyvind@2333b21a-1c27-0410-8132-afba56cb5048>
Wed, 18 Nov 2009 10:15:10 +0000 (18 10:15 +0000)
tree9ce962699a024966d0bcb926bc9a53ec7b807dee
parent2f1a9b43a0bf68ec71d4282b613e621042827184
cache: fix bugs in HAL_DCACHE_INVALIDATE()

Said macro would invalidate the line rather than the address.

So if another memory location was cached in the same line
that was covered by address range passed in to the macro, that
other memory location would be dropped causing "memory corruption".

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
git-svn-id: http://www.ecosforge.net/ecosforge/trunk/nios2ecos@297 2333b21a-1c27-0410-8132-afba56cb5048
packages/hal/nios2/arch/current/include/hal_cache.h