[U-Boot] [PATCH v2] nios2: Pseudo implement dcache_status/enable/disable()

Thomas Chou thomas at wytron.com.tw
Thu Oct 20 09:00:09 CEST 2011


On 10/18/2011 12:35 AM, Joachim Foerster wrote:
> AFAIK the NIOS2 architecture does not have any possibility to
> dynamically switch off the data cache. So _status() always reports 1 and
> _enable/_disable() just issue a flush of everything.
>
> For example, common/cmd_elf.c depends on these symbols.
>
> Signed-off-by: Joachim Foerster<joachim.foerster at missinglinkelectronics.com>
> ---
> Changes for v2:
> 	- Remove return; from added void functions
>
>   arch/nios2/cpu/cpu.c |   15 +++++++++++++++
>   1 files changed, 15 insertions(+), 0 deletions(-)

Hi Joachim,

I got this warning. Please fix it with appropriate header. Thanks.

Configuring for nios2-generic board...
cpu.c: In function 'dcache_enable':
cpu.c:58: warning: implicit declaration of function 'flush_dcache'

Best regards,
Thomas


More information about the U-Boot mailing list