Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Use cpu_* prefix to call cpu_* functions (setttb() ...



details:   https://anonhg.NetBSD.org/src/rev/1b71683c8dbb
branches:  trunk
changeset: 750335:1b71683c8dbb
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Sat Dec 26 16:01:23 2009 +0000

description:
Use cpu_* prefix to call cpu_* functions (setttb() -> cpu_setttb()); no
functional changes.

diffstat:

 sys/arch/arm/at91/at91bus.c                     |  6 +++---
 sys/arch/evbarm/adi_brh/brh_machdep.c           |  6 +++---
 sys/arch/evbarm/armadillo/armadillo9_machdep.c  |  6 +++---
 sys/arch/evbarm/beagle/beagle_machdep.c         |  6 +++---
 sys/arch/evbarm/evbarm/initarm_common.c         |  6 +++---
 sys/arch/evbarm/g42xxeb/g42xxeb_machdep.c       |  4 ++--
 sys/arch/evbarm/gemini/gemini_machdep.c         |  6 +++---
 sys/arch/evbarm/gumstix/gumstix_machdep.c       |  4 ++--
 sys/arch/evbarm/hdl_g/hdlg_machdep.c            |  6 +++---
 sys/arch/evbarm/imx31/imx31lk_machdep.c         |  6 +++---
 sys/arch/evbarm/integrator/integrator_machdep.c |  6 +++---
 sys/arch/evbarm/iq80310/iq80310_machdep.c       |  6 +++---
 sys/arch/evbarm/iq80321/iq80321_machdep.c       |  6 +++---
 sys/arch/evbarm/ixdp425/ixdp425_machdep.c       |  6 +++---
 sys/arch/evbarm/ixm1200/ixm1200_machdep.c       |  6 +++---
 sys/arch/evbarm/lubbock/lubbock_machdep.c       |  6 +++---
 sys/arch/evbarm/npwr_fc/npwr_fc_machdep.c       |  6 +++---
 sys/arch/evbarm/nslu2/nslu2_machdep.c           |  6 +++---
 sys/arch/evbarm/osk5912/osk5912_machdep.c       |  6 +++---
 sys/arch/evbarm/smdk2xx0/smdk2410_machdep.c     |  6 +++---
 sys/arch/evbarm/smdk2xx0/smdk2800_machdep.c     |  6 +++---
 sys/arch/evbarm/tisdp24xx/sdp24xx_machdep.c     |  6 +++---
 sys/arch/evbarm/tsarm/tsarm_machdep.c           |  6 +++---
 sys/arch/evbarm/viper/viper_machdep.c           |  6 +++---
 sys/arch/hpcarm/hpcarm/hpc_machdep.c            |  6 +++---
 25 files changed, 73 insertions(+), 73 deletions(-)

diffs (truncated from 657 to 300 lines):

diff -r 2be3ab696926 -r 1b71683c8dbb sys/arch/arm/at91/at91bus.c
--- a/sys/arch/arm/at91/at91bus.c       Sat Dec 26 15:47:14 2009 +0000
+++ b/sys/arch/arm/at91/at91bus.c       Sat Dec 26 16:01:23 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: at91bus.c,v 1.9 2009/11/27 03:23:05 rmind Exp $        */
+/*     $NetBSD: at91bus.c,v 1.10 2009/12/26 16:01:23 uebayasi Exp $    */
 
 /*
  * Copyright (c) 2007 Embedtronics Oy
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: at91bus.c,v 1.9 2009/11/27 03:23:05 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at91bus.c,v 1.10 2009/12/26 16:01:23 uebayasi Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -450,7 +450,7 @@
        printf("switching to new L1 page table  @%#lx...", kernel_l1pt.pv_pa);
 #endif
        cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT);
-       setttb(kernel_l1pt.pv_pa);
+       cpu_setttb(kernel_l1pt.pv_pa);
        cpu_tlb_flushID();
        cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
 
diff -r 2be3ab696926 -r 1b71683c8dbb sys/arch/evbarm/adi_brh/brh_machdep.c
--- a/sys/arch/evbarm/adi_brh/brh_machdep.c     Sat Dec 26 15:47:14 2009 +0000
+++ b/sys/arch/evbarm/adi_brh/brh_machdep.c     Sat Dec 26 16:01:23 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: brh_machdep.c,v 1.35 2009/12/26 15:47:14 uebayasi Exp $        */
+/*     $NetBSD: brh_machdep.c,v 1.36 2009/12/26 16:01:23 uebayasi Exp $        */
 
 /*
  * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: brh_machdep.c,v 1.35 2009/12/26 15:47:14 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: brh_machdep.c,v 1.36 2009/12/26 16:01:23 uebayasi Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pmap_debug.h"
@@ -660,7 +660,7 @@
        printf("switching to new L1 page table  @%#lx...", kernel_l1pt.pv_pa);
 #endif
        cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT);
-       setttb(kernel_l1pt.pv_pa);
+       cpu_setttb(kernel_l1pt.pv_pa);
        cpu_tlb_flushID();
        cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
 
diff -r 2be3ab696926 -r 1b71683c8dbb sys/arch/evbarm/armadillo/armadillo9_machdep.c
--- a/sys/arch/evbarm/armadillo/armadillo9_machdep.c    Sat Dec 26 15:47:14 2009 +0000
+++ b/sys/arch/evbarm/armadillo/armadillo9_machdep.c    Sat Dec 26 16:01:23 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: armadillo9_machdep.c,v 1.17 2009/11/27 03:23:06 rmind Exp $    */
+/*     $NetBSD: armadillo9_machdep.c,v 1.18 2009/12/26 16:01:23 uebayasi Exp $ */
 
 /*
  * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
@@ -110,7 +110,7 @@
 */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: armadillo9_machdep.c,v 1.17 2009/11/27 03:23:06 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: armadillo9_machdep.c,v 1.18 2009/12/26 16:01:23 uebayasi Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -766,7 +766,7 @@
        printf("switching to new L1 page table  @%#lx...", kernel_l1pt.pv_pa);
 #endif
        cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT);
-       setttb(kernel_l1pt.pv_pa);
+       cpu_setttb(kernel_l1pt.pv_pa);
        cpu_tlb_flushID();
        cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
 
diff -r 2be3ab696926 -r 1b71683c8dbb sys/arch/evbarm/beagle/beagle_machdep.c
--- a/sys/arch/evbarm/beagle/beagle_machdep.c   Sat Dec 26 15:47:14 2009 +0000
+++ b/sys/arch/evbarm/beagle/beagle_machdep.c   Sat Dec 26 16:01:23 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: beagle_machdep.c,v 1.6 2009/11/27 03:23:06 rmind Exp $ */
+/*     $NetBSD: beagle_machdep.c,v 1.7 2009/12/26 16:01:23 uebayasi Exp $ */
 
 /*
  * Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.6 2009/11/27 03:23:06 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.7 2009/12/26 16:01:23 uebayasi Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -973,7 +973,7 @@
 #endif
 
        cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT);
-       setttb(l1_pa);
+       cpu_setttb(l1_pa);
        cpu_tlb_flushID();
        cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
 
diff -r 2be3ab696926 -r 1b71683c8dbb sys/arch/evbarm/evbarm/initarm_common.c
--- a/sys/arch/evbarm/evbarm/initarm_common.c   Sat Dec 26 15:47:14 2009 +0000
+++ b/sys/arch/evbarm/evbarm/initarm_common.c   Sat Dec 26 16:01:23 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: initarm_common.c,v 1.9 2009/11/27 03:23:06 rmind Exp $ */
+/*     $NetBSD: initarm_common.c,v 1.10 2009/12/26 16:01:23 uebayasi Exp $     */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: initarm_common.c,v 1.9 2009/11/27 03:23:06 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: initarm_common.c,v 1.10 2009/12/26 16:01:23 uebayasi Exp $");
 
 #include <sys/systm.h>
 #include <sys/param.h>
@@ -408,7 +408,7 @@
 
        /* Switch tables */
        cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT);
-       setttb(kernel_l1pt.pv_pa);
+       cpu_setttb(kernel_l1pt.pv_pa);
        cpu_tlb_flushID();
        cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
 
diff -r 2be3ab696926 -r 1b71683c8dbb sys/arch/evbarm/g42xxeb/g42xxeb_machdep.c
--- a/sys/arch/evbarm/g42xxeb/g42xxeb_machdep.c Sat Dec 26 15:47:14 2009 +0000
+++ b/sys/arch/evbarm/g42xxeb/g42xxeb_machdep.c Sat Dec 26 16:01:23 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: g42xxeb_machdep.c,v 1.19 2009/12/26 15:47:14 uebayasi Exp $ */
+/*     $NetBSD: g42xxeb_machdep.c,v 1.20 2009/12/26 16:01:24 uebayasi Exp $ */
 
 /*
  * Copyright (c) 2002, 2003, 2004, 2005  Genetec Corporation.  
@@ -792,7 +792,7 @@
 #endif
        LEDSTEP();
 
-       setttb(kernel_l1pt.pv_pa);
+       cpu_setttb(kernel_l1pt.pv_pa);
        cpu_tlb_flushID();
        cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
        LEDSTEP();
diff -r 2be3ab696926 -r 1b71683c8dbb sys/arch/evbarm/gemini/gemini_machdep.c
--- a/sys/arch/evbarm/gemini/gemini_machdep.c   Sat Dec 26 15:47:14 2009 +0000
+++ b/sys/arch/evbarm/gemini/gemini_machdep.c   Sat Dec 26 16:01:23 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gemini_machdep.c,v 1.14 2009/11/27 03:23:06 rmind Exp $        */
+/*     $NetBSD: gemini_machdep.c,v 1.15 2009/12/26 16:01:24 uebayasi Exp $     */
 
 /* adapted from:
  *     NetBSD: sdp24xx_machdep.c,v 1.4 2008/08/27 11:03:10 matt Exp
@@ -129,7 +129,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gemini_machdep.c,v 1.14 2009/11/27 03:23:06 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gemini_machdep.c,v 1.15 2009/12/26 16:01:24 uebayasi Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -1241,7 +1241,7 @@
 #endif
 
        cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT);
-       setttb(l1_pa);
+       cpu_setttb(l1_pa);
        cpu_tlb_flushID();
        cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
 
diff -r 2be3ab696926 -r 1b71683c8dbb sys/arch/evbarm/gumstix/gumstix_machdep.c
--- a/sys/arch/evbarm/gumstix/gumstix_machdep.c Sat Dec 26 15:47:14 2009 +0000
+++ b/sys/arch/evbarm/gumstix/gumstix_machdep.c Sat Dec 26 16:01:23 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gumstix_machdep.c,v 1.22 2009/12/26 15:47:14 uebayasi Exp $ */
+/*     $NetBSD: gumstix_machdep.c,v 1.23 2009/12/26 16:01:24 uebayasi Exp $ */
 /*
  * Copyright (C) 2005, 2006, 2007  WIDE Project and SOUM Corporation.
  * All rights reserved.
@@ -791,7 +791,7 @@
        printf("switching to new L1 page table  @%#lx...", kernel_l1pt.pv_pa);
 #endif
 
-       setttb(kernel_l1pt.pv_pa);
+       cpu_setttb(kernel_l1pt.pv_pa);
        cpu_tlb_flushID();
        cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
 
diff -r 2be3ab696926 -r 1b71683c8dbb sys/arch/evbarm/hdl_g/hdlg_machdep.c
--- a/sys/arch/evbarm/hdl_g/hdlg_machdep.c      Sat Dec 26 15:47:14 2009 +0000
+++ b/sys/arch/evbarm/hdl_g/hdlg_machdep.c      Sat Dec 26 16:01:23 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hdlg_machdep.c,v 1.13 2009/12/26 15:47:15 uebayasi Exp $       */
+/*     $NetBSD: hdlg_machdep.c,v 1.14 2009/12/26 16:01:24 uebayasi Exp $       */
 
 /*
  * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdlg_machdep.c,v 1.13 2009/12/26 15:47:15 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdlg_machdep.c,v 1.14 2009/12/26 16:01:24 uebayasi Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -554,7 +554,7 @@
        printf("switching to new L1 page table  @%#lx...", kernel_l1pt.pv_pa);
 #endif
        cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT);
-       setttb(kernel_l1pt.pv_pa);
+       cpu_setttb(kernel_l1pt.pv_pa);
        cpu_tlb_flushID();
        cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
 
diff -r 2be3ab696926 -r 1b71683c8dbb sys/arch/evbarm/imx31/imx31lk_machdep.c
--- a/sys/arch/evbarm/imx31/imx31lk_machdep.c   Sat Dec 26 15:47:14 2009 +0000
+++ b/sys/arch/evbarm/imx31/imx31lk_machdep.c   Sat Dec 26 16:01:23 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: imx31lk_machdep.c,v 1.8 2009/12/26 15:47:15 uebayasi Exp $ */
+/* $NetBSD: imx31lk_machdep.c,v 1.9 2009/12/26 16:01:24 uebayasi Exp $ */
 
 /*
  * Startup routines for the ZOOM iMX31 LITEKIT.
@@ -110,7 +110,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imx31lk_machdep.c,v 1.8 2009/12/26 15:47:15 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imx31lk_machdep.c,v 1.9 2009/12/26 16:01:24 uebayasi Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -669,7 +669,7 @@
 #endif
 
        cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT);
-       setttb(kernel_l1pt.pv_pa);
+       cpu_setttb(kernel_l1pt.pv_pa);
        cpu_tlb_flushID();
        cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
        imx31lk_consinit(2);
diff -r 2be3ab696926 -r 1b71683c8dbb sys/arch/evbarm/integrator/integrator_machdep.c
--- a/sys/arch/evbarm/integrator/integrator_machdep.c   Sat Dec 26 15:47:14 2009 +0000
+++ b/sys/arch/evbarm/integrator/integrator_machdep.c   Sat Dec 26 16:01:23 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: integrator_machdep.c,v 1.65 2009/12/26 15:47:15 uebayasi Exp $ */
+/*     $NetBSD: integrator_machdep.c,v 1.66 2009/12/26 16:01:24 uebayasi Exp $ */
 
 /*
  * Copyright (c) 2001,2002 ARM Ltd
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: integrator_machdep.c,v 1.65 2009/12/26 15:47:15 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: integrator_machdep.c,v 1.66 2009/12/26 16:01:24 uebayasi Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pmap_debug.h"
@@ -660,7 +660,7 @@
        printf("switching to new L1 page table  @%#lx...", kernel_l1pt.pv_pa);
 #endif
        cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT);
-       setttb(kernel_l1pt.pv_pa);
+       cpu_setttb(kernel_l1pt.pv_pa);
        cpu_tlb_flushID();
        cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
 
diff -r 2be3ab696926 -r 1b71683c8dbb sys/arch/evbarm/iq80310/iq80310_machdep.c
--- a/sys/arch/evbarm/iq80310/iq80310_machdep.c Sat Dec 26 15:47:14 2009 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310_machdep.c Sat Dec 26 16:01:23 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iq80310_machdep.c,v 1.77 2009/12/26 15:47:15 uebayasi Exp $    */
+/*     $NetBSD: iq80310_machdep.c,v 1.78 2009/12/26 16:01:24 uebayasi Exp $    */
 
 /*
  * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iq80310_machdep.c,v 1.77 2009/12/26 15:47:15 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iq80310_machdep.c,v 1.78 2009/12/26 16:01:24 uebayasi Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pmap_debug.h"
@@ -674,7 +674,7 @@
        printf("switching to new L1 page table  @%#lx...", kernel_l1pt.pv_pa);
 #endif



Home | Main Index | Thread Index | Old Index