| // SPDX-License-Identifier: GPL-2.0+ |
| * (C) Copyright 2007 Michal Simek |
| * Michal SIMEK <monstr@monstr.eu> |
| __asm__ __volatile__ ("mfs %0,rmsr"::"r" (i):"memory"); |
| __asm__ __volatile__ ("and %0,%0,%1"::"r" (i), "r" (mask):"memory"); |
| __asm__ __volatile__ ("mfs %0,rmsr"::"r" (i):"memory"); |
| __asm__ __volatile__ ("and %0,%0,%1"::"r" (i), "r" (mask):"memory"); |
| void icache_enable (void) { |
| void icache_disable(void) { |
| /* we are not generate ICACHE size -> flush whole cache */ |
| void dcache_enable (void) { |
| void dcache_disable(void) { |
| flush_cache(0, XILINX_DCACHE_BYTE_SIZE); |
| void flush_cache (ulong addr, ulong size) |
| for (i = 0; i < size; i += 4) |