[U-Boot] [PATCH v2 11/12] arm: add MMU/d-cache support for Faraday cores

Kuo-Jung Su dantesu at gmail.com
Mon Apr 22 03:23:01 CEST 2013


2013/4/18 Wolfgang Denk <wd at denx.de>:
> Dear Kuo-Jung Su,
>
> In message <1366277139-29728-12-git-send-email-dantesu at gmail.com> you wrote:
> ...
>> --- a/common/cmd_boot.c
>> +++ b/common/cmd_boot.c
>> @@ -50,6 +50,10 @@ static int do_go(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
>>
>>       printf ("## Starting application at 0x%08lX ...\n", addr);
>>
>> +#if defined(__ARM__) && !defined(CONFIG_SYS_DCACHE_OFF)
>> +     cleanup_before_linux();
>> +#endif
>> +
>>       /*
>>        * pass address parameter as argv[0] (aka command name),
>>        * and all remaining args
>
> Thios affects global code. Please submit as separate patch.

Got it, thanks

>
> And why exactly is this ARM specific?
>

Because it only has been tested on ARM platform only,
I'm not sure if the others arch. also has the function: cleanup_before_linux();

> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> My play was a complete success.  The audience was a failure.



--
Best wishes,
Kuo-Jung Su


More information about the U-Boot mailing list