[PATCH 08/10] microblaze: cache: introduce flush_dcache_range()

Michal Simek michal.simek at xilinx.com
Fri Apr 22 15:08:15 CEST 2022



On 4/11/22 18:26, Ovidiu Panait wrote:
> Align microblaze with the other architectures and provide an
> implementation for flush_dcache_range(). Also, remove the microblaze
> exception in drivers/core/device.c.
> 
> Signed-off-by: Ovidiu Panait <ovpanait at gmail.com>
> ---
> 
>   arch/microblaze/cpu/cache.c | 8 ++++++++
>   drivers/core/device.c       | 5 -----
>   2 files changed, 8 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/microblaze/cpu/cache.c b/arch/microblaze/cpu/cache.c
> index 60b6d549d7..cce33a6eb5 100644
> --- a/arch/microblaze/cpu/cache.c
> +++ b/arch/microblaze/cpu/cache.c
> @@ -43,6 +43,14 @@ static void __flush_dcache(ulong addr, ulong size)
>   	}
>   }
>   
> +void flush_dcache_range(unsigned long start, unsigned long end)
> +{
> +	if (start >= end)
> +		return;

I think you should at least print any message when debug is enabled.

Thanks,
Michal


More information about the U-Boot mailing list