From: miod Date: Sat, 21 Jan 2023 19:39:28 +0000 (+0000) Subject: Remove dead/unused prototypes X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5b66b1f4c4b79396992358807b7b53d5c2078734;p=openbsd Remove dead/unused prototypes --- diff --git a/sys/arch/powerpc/include/pmap.h b/sys/arch/powerpc/include/pmap.h index 290fb7a71a7..50a54c74db8 100644 --- a/sys/arch/powerpc/include/pmap.h +++ b/sys/arch/powerpc/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.60 2021/05/30 15:08:08 visa Exp $ */ +/* $OpenBSD: pmap.h,v 1.61 2023/01/21 19:39:28 miod Exp $ */ /* $NetBSD: pmap.h,v 1.1 1996/09/30 16:34:29 ws Exp $ */ /*- @@ -142,7 +142,6 @@ void pmap_pinit(struct pmap *); void pmap_release(struct pmap *); void pmap_real_memory(vaddr_t *start, vsize_t *size); -void switchexit(struct proc *); int pte_spill_v(struct pmap *pm, u_int32_t va, u_int32_t dsisr, int exec_fault); #define pmap_copy(dst_pmap, src_pmap, dst_addr, len, src_addr) ; diff --git a/sys/arch/sparc64/include/pmap.h b/sys/arch/sparc64/include/pmap.h index 1c9dac9d7b2..6b49abd50ef 100644 --- a/sys/arch/sparc64/include/pmap.h +++ b/sys/arch/sparc64/include/pmap.h @@ -150,13 +150,6 @@ struct prom_map { typedef struct pmap *pmap_t; -/* - * Encode IO space for pmap_enter() - * - * Since sun4u machines don't have separate IO spaces, this is a noop. - */ -#define PMAP_IOENC(io) 0 - extern struct pmap kernel_pmap_; #define pmap_kernel() (&kernel_pmap_) @@ -180,12 +173,9 @@ void pmap_bootstrap(u_long, u_long, u_int, u_int); #define __HAVE_PMAP_COLLECT /* SPARC specific? */ -void pmap_redzone(void); -int pmap_dumpsize(void); -int pmap_dumpmmu(int (*)(dev_t, daddr_t, caddr_t, size_t), daddr_t); -int pmap_pa_exists(paddr_t); -struct proc; -void switchexit(struct proc *); +int pmap_dumpsize(void); +int pmap_dumpmmu(int (*)(dev_t, daddr_t, caddr_t, size_t), daddr_t); +int pmap_pa_exists(paddr_t); /* SPARC64 specific */ int ctx_alloc(struct pmap*); @@ -200,7 +190,7 @@ void ctx_free(struct pmap*); typedef struct pv_entry { struct pv_entry *pv_next; /* next pv_entry */ struct pmap *pv_pmap; /* pmap where mapping lies */ - vaddr_t pv_va; /* virtual address for mapping */ + vaddr_t pv_va; /* virtual address for mapping */ } *pv_entry_t; /* PV flags encoded in the low bits of the VA of the first pv_entry */ diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 40b05e5c07c..73c633d799e 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.205 2022/10/30 17:43:40 guenther Exp $ */ +/* $OpenBSD: machdep.c,v 1.206 2023/01/21 19:39:28 miod Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -245,10 +245,6 @@ cpu_startup(void) * Set up buffers, so they can be used to read disk labels. */ bufinit(); - -#if 0 - pmap_redzone(); -#endif } /*