Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/smdk2xx0 GC writeback_dcache_line and clear_...



details:   https://anonhg.NetBSD.org/src/rev/9228a95431aa
branches:  trunk
changeset: 327129:9228a95431aa
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Feb 27 22:57:22 2014 +0000

description:
GC writeback_dcache_line and clear_dcache_line.

diffstat:

 sys/arch/evbarm/smdk2xx0/smdk2410_machdep.c |  24 ++----------------------
 1 files changed, 2 insertions(+), 22 deletions(-)

diffs (45 lines):

diff -r d8fb92cab512 -r 9228a95431aa sys/arch/evbarm/smdk2xx0/smdk2410_machdep.c
--- a/sys/arch/evbarm/smdk2xx0/smdk2410_machdep.c       Thu Feb 27 22:50:52 2014 +0000
+++ b/sys/arch/evbarm/smdk2xx0/smdk2410_machdep.c       Thu Feb 27 22:57:22 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smdk2410_machdep.c,v 1.33 2013/08/18 15:58:21 matt Exp $ */
+/*     $NetBSD: smdk2410_machdep.c,v 1.34 2014/02/27 22:57:22 joerg Exp $ */
 
 /*
  * Copyright (c) 2002, 2003 Fujitsu Component Limited
@@ -105,7 +105,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smdk2410_machdep.c,v 1.33 2013/08/18 15:58:21 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smdk2410_machdep.c,v 1.34 2014/02/27 22:57:22 joerg Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -976,26 +976,6 @@
 }
 #endif
 
-static inline void
-writeback_dcache_line(vaddr_t va)
-{
-       /* writeback Dcache line */
-       /* we can't use cpu_dcache_wb_range() here, because cpufuncs for ARM9
-        * assume write-through cache, and always flush Dcache instead of
-        * cleaning it. Since Boot loader maps page table with write-back
-        * cached, we really need to clean Dcache. */
-       __asm("mcr      p15, 0, %0, c7, c10, 1"
-           : : "r"(va));
-}
-
-static inline void
-clean_dcache_line(vaddr_t va)
-{
-       /* writeback and invalidate Dcache line */
-       __asm("mcr      p15, 0, %0, c7, c14, 1"
-           : : "r"(va));
-}
-
 static struct arm32_dma_range smdk2410_dma_ranges[1];
 
 bus_dma_tag_t



Home | Main Index | Thread Index | Old Index