cache.c 328 B

1234567891011121314151617
  1. /* Sparc cache library
  2. *
  3. * (C) Copyright 2007
  4. * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #include <common.h>
  9. #include <asm/processor.h>
  10. void flush_cache(ulong start_addr, ulong size)
  11. {
  12. /* Flush All Cache */
  13. sparc_dcache_flush_all();
  14. sparc_icache_flush_all();
  15. }