Source-Changes-HG archive

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

[src/trunk]: src/sys/arch remove tlb_flush define and change callers to use c...



details:   https://anonhg.NetBSD.org/src/rev/0ee428100db0
branches:  trunk
changeset: 341071:0ee428100db0
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Oct 17 16:34:43 2015 +0000

description:
remove tlb_flush define and change callers to use cpu_tlb_flushID directly, ok matt@

diffstat:

 sys/arch/arm/include/cpufunc.h   |  1 -
 sys/arch/arm/xscale/pxa2x0_lcd.c |  6 +++---
 sys/arch/shark/ofw/ofw.c         |  8 ++++----
 3 files changed, 7 insertions(+), 8 deletions(-)

diffs (74 lines):

diff -r 38b833262112 -r 0ee428100db0 sys/arch/arm/include/cpufunc.h
--- a/sys/arch/arm/include/cpufunc.h    Sat Oct 17 16:17:22 2015 +0000
+++ b/sys/arch/arm/include/cpufunc.h    Sat Oct 17 16:34:43 2015 +0000
@@ -230,7 +230,6 @@
 u_int  cpufunc_faultstatus     (void);
 u_int  cpufunc_faultaddress    (void);
 
-#define tlb_flush      cpu_tlb_flushID
 #define setttb         cpu_setttb
 #define drain_writebuf cpu_drain_writebuf
 
diff -r 38b833262112 -r 0ee428100db0 sys/arch/arm/xscale/pxa2x0_lcd.c
--- a/sys/arch/arm/xscale/pxa2x0_lcd.c  Sat Oct 17 16:17:22 2015 +0000
+++ b/sys/arch/arm/xscale/pxa2x0_lcd.c  Sat Oct 17 16:34:43 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pxa2x0_lcd.c,v 1.35 2014/02/22 19:03:06 matt Exp $ */
+/* $NetBSD: pxa2x0_lcd.c,v 1.36 2015/10/17 16:34:43 jmcneill Exp $ */
 
 /*
  * Copyright (c) 2002  Genetec Corporation.  All rights reserved.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pxa2x0_lcd.c,v 1.35 2014/02/22 19:03:06 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pxa2x0_lcd.c,v 1.36 2015/10/17 16:34:43 jmcneill Exp $");
 
 #include "opt_pxa2x0_lcd.h"
 
@@ -566,7 +566,7 @@
                        PTE_SYNC(ptep);
                        va += PAGE_SIZE;
                }
-               tlb_flush();
+               cpu_tlb_flushID();
        }
 
        memset(scr->buf_va, 0, scr->buf_size);
diff -r 38b833262112 -r 0ee428100db0 sys/arch/shark/ofw/ofw.c
--- a/sys/arch/shark/ofw/ofw.c  Sat Oct 17 16:17:22 2015 +0000
+++ b/sys/arch/shark/ofw/ofw.c  Sat Oct 17 16:34:43 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofw.c,v 1.63 2014/02/22 18:55:53 matt Exp $    */
+/*     $NetBSD: ofw.c,v 1.64 2015/10/17 16:34:43 jmcneill Exp $        */
 
 /*
  * Copyright 1997
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw.c,v 1.63 2014/02/22 18:55:53 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw.c,v 1.64 2015/10/17 16:34:43 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1062,7 +1062,7 @@
                }
 
                /* Clean out tlb. */
-               tlb_flush();
+               cpu_tlb_flushID();
 
                args_n_results[nargs + 1] = 0;
                args->nreturns = 2;
@@ -1106,7 +1106,7 @@
                }
 
                /* Clean out tlb. */
-               tlb_flush();
+               cpu_tlb_flushID();
 
                args->nreturns = 1;
        } else if (strcmp(name, "translate") == 0) {



Home | Main Index | Thread Index | Old Index