Declare oeacpufeat once, in powerpc/oea/cpu_subr.c, rather than in

N different locore.S files.
This commit is contained in:
thorpej 2021-02-26 02:18:55 +00:00
parent 2bf5a48652
commit 31c71552cd
12 changed files with 15 additions and 35 deletions

View File

@ -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 @@ GLOBAL(startsym)
.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 */

View File

@ -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 @@ GLOBAL(startsym)
.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)

View File

@ -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 @@ GLOBAL(startsym)
.long 0 /* start symbol table */
GLOBAL(endsym)
.long 0 /* end symbol table */
GLOBAL(oeacpufeat)
.long 0 /* cpu features */
/*
* File-scope for locore.S
*/

View File

@ -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 @@ GLOBAL(startsym)
.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.

View File

@ -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 @@ GLOBAL(startsym)
.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

View File

@ -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

View File

@ -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 @@ GLOBAL(startsym)
.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)

View File

@ -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

View File

@ -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_psluserset;
register_t cpu_pslusermod;
register_t cpu_pslusermask = 0xffff;
unsigned long oeacpufeat;
/* This is to be called from locore.S, and nowhere else. */
void

View File

@ -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 @@ GLOBAL(startsym)
.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

View File

@ -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 @@ GLOBAL(startsym)
.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.

View File

@ -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 @@ GLOBAL(startsym)
.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.