Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Declare oeacpufeat once, in powerpc/oea/cpu_subr.c,...



details:   https://anonhg.NetBSD.org/src/rev/f3d7d0dec7cb
branches:  trunk
changeset: 1019071:f3d7d0dec7cb
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Feb 26 02:18:55 2021 +0000

description:
Declare oeacpufeat once, in powerpc/oea/cpu_subr.c, rather than in
N different locore.S files.

diffstat:

 sys/arch/amigappc/amigappc/locore.S      |  4 +---
 sys/arch/bebox/bebox/locore.S            |  4 +---
 sys/arch/evbppc/ev64260/ev64260_locore.S |  4 +---
 sys/arch/evbppc/pmppc/pmppc_locore.S     |  4 +---
 sys/arch/ibmnws/ibmnws/locore.S          |  4 +---
 sys/arch/macppc/macppc/locore.S          |  4 +---
 sys/arch/mvmeppc/mvmeppc/locore.S        |  4 +---
 sys/arch/ofppc/ofppc/locore.S            |  4 +---
 sys/arch/powerpc/oea/cpu_subr.c          |  6 ++++--
 sys/arch/prep/prep/locore.S              |  4 +---
 sys/arch/rs6000/rs6000/locore.S          |  4 +---
 sys/arch/sandpoint/sandpoint/locore.S    |  4 +---
 12 files changed, 15 insertions(+), 35 deletions(-)

diffs (225 lines):

diff -r c27ea63e31fb -r f3d7d0dec7cb sys/arch/amigappc/amigappc/locore.S
--- a/sys/arch/amigappc/amigappc/locore.S       Fri Feb 26 02:18:29 2021 +0000
+++ b/sys/arch/amigappc/amigappc/locore.S       Fri Feb 26 02:18:55 2021 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: locore.S,v 1.26 2018/07/15 05:16:41 maxv Exp $   */
+/*      $NetBSD: locore.S,v 1.27 2021/02/26 02:18:55 thorpej Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -68,8 +68,6 @@
        .long   0                       /* start symbol table */
 GLOBAL(endsym)
        .long   0                       /* end symbol table */
-GLOBAL(oeacpufeat)
-       .long   0                       /* cpu features */
 GLOBAL(eclockfreq)
        .long   0                       /* needed by the aucc driver only */
 
diff -r c27ea63e31fb -r f3d7d0dec7cb sys/arch/bebox/bebox/locore.S
--- a/sys/arch/bebox/bebox/locore.S     Fri Feb 26 02:18:29 2021 +0000
+++ b/sys/arch/bebox/bebox/locore.S     Fri Feb 26 02:18:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.29 2018/07/15 05:16:41 maxv Exp $ */
+/*     $NetBSD: locore.S,v 1.30 2021/02/26 02:18:55 thorpej Exp $      */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -63,8 +63,6 @@
        .long   0                       /* start symbol table */
 GLOBAL(endsym)
        .long   0                       /* end symbol table */
-GLOBAL(oeacpufeat)
-       .long   0                               /* cpu features */
 
 /* XXX All of this should die */
 GLOBAL(intrnames)
diff -r c27ea63e31fb -r f3d7d0dec7cb sys/arch/evbppc/ev64260/ev64260_locore.S
--- a/sys/arch/evbppc/ev64260/ev64260_locore.S  Fri Feb 26 02:18:29 2021 +0000
+++ b/sys/arch/evbppc/ev64260/ev64260_locore.S  Fri Feb 26 02:18:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ev64260_locore.S,v 1.20 2018/07/15 05:16:42 maxv Exp $ */
+/*     $NetBSD: ev64260_locore.S,v 1.21 2021/02/26 02:18:56 thorpej Exp $      */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -63,8 +63,6 @@
        .long   0                       /* start symbol table */
 GLOBAL(endsym)
        .long   0                       /* end symbol table */
-GLOBAL(oeacpufeat)
-       .long   0                       /* cpu features */
 /*
  * File-scope for locore.S
  */
diff -r c27ea63e31fb -r f3d7d0dec7cb sys/arch/evbppc/pmppc/pmppc_locore.S
--- a/sys/arch/evbppc/pmppc/pmppc_locore.S      Fri Feb 26 02:18:29 2021 +0000
+++ b/sys/arch/evbppc/pmppc/pmppc_locore.S      Fri Feb 26 02:18:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmppc_locore.S,v 1.12 2018/07/15 05:16:42 maxv Exp $   */
+/*     $NetBSD: pmppc_locore.S,v 1.13 2021/02/26 02:18:56 thorpej Exp $        */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -64,8 +64,6 @@
        .long   0                       /* start symbol table */
 GLOBAL(endsym)
        .long   0                       /* end symbol table */
-GLOBAL(oeacpufeat)
-       .long   0                       /* cpu features */
 /*
  * This symbol is here for the benefit of kvm_mkdb, and is supposed to
  * mark the start of kernel text.
diff -r c27ea63e31fb -r f3d7d0dec7cb sys/arch/ibmnws/ibmnws/locore.S
--- a/sys/arch/ibmnws/ibmnws/locore.S   Fri Feb 26 02:18:29 2021 +0000
+++ b/sys/arch/ibmnws/ibmnws/locore.S   Fri Feb 26 02:18:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.12 2018/07/15 05:16:43 maxv Exp $ */
+/*     $NetBSD: locore.S,v 1.13 2021/02/26 02:18:56 thorpej Exp $      */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -59,8 +59,6 @@
        .long   0                       /* start symbol table */
 GLOBAL(endsym)
        .long   0                       /* end symbol table */
-GLOBAL(oeacpufeat)
-       .long   0                       /* cpu features */
 /*
        
  * This symbol is here for the benefit of kvm_mkdb, and is supposed to
diff -r c27ea63e31fb -r f3d7d0dec7cb sys/arch/macppc/macppc/locore.S
--- a/sys/arch/macppc/macppc/locore.S   Fri Feb 26 02:18:29 2021 +0000
+++ b/sys/arch/macppc/macppc/locore.S   Fri Feb 26 02:18:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.78 2021/02/17 23:21:46 thorpej Exp $      */
+/*     $NetBSD: locore.S,v 1.79 2021/02/26 02:18:56 thorpej Exp $      */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -62,8 +62,6 @@
        .data
 GLOBAL(esym)
        .long   0                       /* end of symbol table */
-GLOBAL(oeacpufeat)
-       .long   0                       /* cpu features */
 
 /*
  * This symbol is here for the benefit of kvm_mkdb, and is supposed to
diff -r c27ea63e31fb -r f3d7d0dec7cb sys/arch/mvmeppc/mvmeppc/locore.S
--- a/sys/arch/mvmeppc/mvmeppc/locore.S Fri Feb 26 02:18:29 2021 +0000
+++ b/sys/arch/mvmeppc/mvmeppc/locore.S Fri Feb 26 02:18:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.17 2018/07/15 05:16:43 maxv Exp $ */
+/*     $NetBSD: locore.S,v 1.18 2021/02/26 02:18:56 thorpej Exp $      */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -63,8 +63,6 @@
        .long   0                       /* start symbol table */
 GLOBAL(endsym)
        .long   0                       /* end symbol table */
-GLOBAL(oeacpufeat)
-       .long   0                       /* cpu features */
 
 /* XXX All of this should die */
 GLOBAL(intrnames)
diff -r c27ea63e31fb -r f3d7d0dec7cb sys/arch/ofppc/ofppc/locore.S
--- a/sys/arch/ofppc/ofppc/locore.S     Fri Feb 26 02:18:29 2021 +0000
+++ b/sys/arch/ofppc/ofppc/locore.S     Fri Feb 26 02:18:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.51 2021/02/17 23:21:47 thorpej Exp $      */
+/*     $NetBSD: locore.S,v 1.52 2021/02/26 02:18:56 thorpej Exp $      */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -61,8 +61,6 @@
        .data
 GLOBAL(esym)
        .long   0                       /* end of symbol table */
-GLOBAL(oeacpufeat)
-       .long   0                       /* cpu features */
 
 /*
  * This symbol is here for the benefit of kvm_mkdb, and is supposed to
diff -r c27ea63e31fb -r f3d7d0dec7cb sys/arch/powerpc/oea/cpu_subr.c
--- a/sys/arch/powerpc/oea/cpu_subr.c   Fri Feb 26 02:18:29 2021 +0000
+++ b/sys/arch/powerpc/oea/cpu_subr.c   Fri Feb 26 02:18:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_subr.c,v 1.105 2021/02/24 16:42:38 thorpej Exp $   */
+/*     $NetBSD: cpu_subr.c,v 1.106 2021/02/26 02:18:57 thorpej Exp $   */
 
 /*-
  * Copyright (c) 2001 Matt Thomas.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.105 2021/02/24 16:42:38 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.106 2021/02/26 02:18:57 thorpej Exp $");
 
 #include "sysmon_envsys.h"
 
@@ -265,6 +265,8 @@
 register_t cpu_pslusermod;
 register_t cpu_pslusermask = 0xffff;
 
+unsigned long oeacpufeat;
+
 /* This is to be called from locore.S, and nowhere else. */
 
 void
diff -r c27ea63e31fb -r f3d7d0dec7cb sys/arch/prep/prep/locore.S
--- a/sys/arch/prep/prep/locore.S       Fri Feb 26 02:18:29 2021 +0000
+++ b/sys/arch/prep/prep/locore.S       Fri Feb 26 02:18:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.20 2018/07/15 05:16:44 maxv Exp $ */
+/*     $NetBSD: locore.S,v 1.21 2021/02/26 02:18:56 thorpej Exp $      */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -74,8 +74,6 @@
        .long   0                       /* start symbol table */
 GLOBAL(endsym)
        .long   0                       /* end symbol table */
-GLOBAL(oeacpufeat)
-       .long   0                       /* cpu features */
 
 /*
  * This symbol is here for the benefit of kvm_mkdb, and is supposed to
diff -r c27ea63e31fb -r f3d7d0dec7cb sys/arch/rs6000/rs6000/locore.S
--- a/sys/arch/rs6000/rs6000/locore.S   Fri Feb 26 02:18:29 2021 +0000
+++ b/sys/arch/rs6000/rs6000/locore.S   Fri Feb 26 02:18:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.12 2018/07/15 05:16:44 maxv Exp $ */
+/*     $NetBSD: locore.S,v 1.13 2021/02/26 02:18:56 thorpej Exp $      */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -78,8 +78,6 @@
        .long   0                       /* start symbol table */
 GLOBAL(endsym)
        .long   0                       /* end symbol table */
-GLOBAL(oeacpufeat)
-       .long   0                       /* cpu features */
 /*
  * This symbol is here for the benefit of kvm_mkdb, and is supposed to
  * mark the start of kernel text.
diff -r c27ea63e31fb -r f3d7d0dec7cb sys/arch/sandpoint/sandpoint/locore.S
--- a/sys/arch/sandpoint/sandpoint/locore.S     Fri Feb 26 02:18:29 2021 +0000
+++ b/sys/arch/sandpoint/sandpoint/locore.S     Fri Feb 26 02:18:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.25 2018/07/15 05:16:44 maxv Exp $ */
+/*     $NetBSD: locore.S,v 1.26 2021/02/26 02:18:57 thorpej Exp $      */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -64,8 +64,6 @@
        .long   0                       /* start symbol table */
 GLOBAL(endsym)
        .long   0                       /* end symbol table */
-GLOBAL(oeacpufeat)
-       .long   0                       /* cpu features */
 /*
  * This symbol is here for the benefit of kvm_mkdb, and is supposed to
  * mark the start of kernel text.



Home | Main Index | Thread Index | Old Index