Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha ANSI'ify.



details:   https://anonhg.NetBSD.org/src/rev/b291ff577a6f
branches:  trunk
changeset: 487228:b291ff577a6f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Jun 04 18:09:36 2000 +0000

description:
ANSI'ify.

diffstat:

 sys/arch/alpha/alpha/pmap.c |  308 ++++++++++++++------------------------------
 1 files changed, 98 insertions(+), 210 deletions(-)

diffs (truncated from 766 to 300 lines):

diff -r f3121cdf4068 -r b291ff577a6f sys/arch/alpha/alpha/pmap.c
--- a/sys/arch/alpha/alpha/pmap.c       Sun Jun 04 18:04:38 2000 +0000
+++ b/sys/arch/alpha/alpha/pmap.c       Sun Jun 04 18:09:36 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.133 2000/06/04 17:39:12 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.134 2000/06/04 18:09:36 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -154,7 +154,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.133 2000/06/04 17:39:12 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.134 2000/06/04 18:09:36 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -449,20 +449,17 @@
 
 struct pool pmap_tlb_shootdown_job_pool;
 
-void   pmap_tlb_shootdown_q_drain __P((struct pmap_tlb_shootdown_q *));
+void   pmap_tlb_shootdown_q_drain(struct pmap_tlb_shootdown_q *);
 struct pmap_tlb_shootdown_job *pmap_tlb_shootdown_job_get
-           __P((struct pmap_tlb_shootdown_q *));
-void   pmap_tlb_shootdown_job_put __P((struct pmap_tlb_shootdown_q *,
-           struct pmap_tlb_shootdown_job *));
+           (struct pmap_tlb_shootdown_q *);
+void   pmap_tlb_shootdown_job_put(struct pmap_tlb_shootdown_q *,
+           struct pmap_tlb_shootdown_job *);
 #endif /* MULTIPROCESSOR */
 
 #define        PAGE_IS_MANAGED(pa)     (vm_physseg_find(atop(pa), NULL) != -1)
 
-static __inline struct pv_head *pa_to_pvh __P((paddr_t));
-
 static __inline struct pv_head *
-pa_to_pvh(pa)
-       paddr_t pa;
+pa_to_pvh(paddr_t pa)
 {
        int bank, pg;
 
@@ -486,50 +483,50 @@
 /*
  * Internal routines
  */
-void   alpha_protection_init __P((void));
-boolean_t pmap_remove_mapping __P((pmap_t, vaddr_t, pt_entry_t *,
-           boolean_t, long, struct prm_thief *));
-void   pmap_changebit __P((paddr_t, pt_entry_t, pt_entry_t, long));
+void   alpha_protection_init(void);
+boolean_t pmap_remove_mapping(pmap_t, vaddr_t, pt_entry_t *,
+           boolean_t, long, struct prm_thief *);
+void   pmap_changebit(paddr_t, pt_entry_t, pt_entry_t, long);
 
 /*
  * PT page management functions.
  */
-int    pmap_lev1map_create __P((pmap_t, long));
-void   pmap_lev1map_destroy __P((pmap_t, long));
-int    pmap_ptpage_alloc __P((pmap_t, pt_entry_t *, int));
-boolean_t pmap_ptpage_steal __P((pmap_t, int, paddr_t *));
-void   pmap_ptpage_free __P((pmap_t, pt_entry_t *, pt_entry_t **));
-void   pmap_l3pt_delref __P((pmap_t, vaddr_t, pt_entry_t *, long,
-           pt_entry_t **));
-void   pmap_l2pt_delref __P((pmap_t, pt_entry_t *, pt_entry_t *, long));
-void   pmap_l1pt_delref __P((pmap_t, pt_entry_t *, long));
+int    pmap_lev1map_create(pmap_t, long);
+void   pmap_lev1map_destroy(pmap_t, long);
+int    pmap_ptpage_alloc(pmap_t, pt_entry_t *, int);
+boolean_t pmap_ptpage_steal(pmap_t, int, paddr_t *);
+void   pmap_ptpage_free(pmap_t, pt_entry_t *, pt_entry_t **);
+void   pmap_l3pt_delref(pmap_t, vaddr_t, pt_entry_t *, long,
+           pt_entry_t **);
+void   pmap_l2pt_delref(pmap_t, pt_entry_t *, pt_entry_t *, long);
+void   pmap_l1pt_delref(pmap_t, pt_entry_t *, long);
 
 /*
  * PV table management functions.
  */
-int    pmap_pv_enter __P((pmap_t, paddr_t, vaddr_t, pt_entry_t *, boolean_t));
-void   pmap_pv_remove __P((pmap_t, paddr_t, vaddr_t, boolean_t,
-           struct pv_entry **));
-struct pv_entry *pmap_pv_alloc __P((void));
-void   pmap_pv_free __P((struct pv_entry *));
-void   *pmap_pv_page_alloc __P((u_long, int, int));
-void   pmap_pv_page_free __P((void *, u_long, int));
+int    pmap_pv_enter(pmap_t, paddr_t, vaddr_t, pt_entry_t *, boolean_t);
+void   pmap_pv_remove(pmap_t, paddr_t, vaddr_t, boolean_t,
+           struct pv_entry **);
+struct pv_entry *pmap_pv_alloc(void);
+void   pmap_pv_free(struct pv_entry *);
+void   *pmap_pv_page_alloc(u_long, int, int);
+void   pmap_pv_page_free(void *, u_long, int);
 #ifdef DEBUG
-void   pmap_pv_dump __P((paddr_t));
+void   pmap_pv_dump(paddr_t);
 #endif
 
 /*
  * ASN management functions.
  */
-void   pmap_asn_alloc __P((pmap_t, long));
+void   pmap_asn_alloc(pmap_t, long);
 
 /*
  * Misc. functions.
  */
-boolean_t pmap_physpage_alloc __P((int, paddr_t *));
-void   pmap_physpage_free __P((paddr_t));
-int    pmap_physpage_addref __P((void *));
-int    pmap_physpage_delref __P((void *));
+boolean_t pmap_physpage_alloc(int, paddr_t *);
+void   pmap_physpage_free(paddr_t);
+int    pmap_physpage_addref(void *);
+int    pmap_physpage_delref(void *);
 
 /*
  * PMAP_ISACTIVE{,_TEST}:
@@ -748,10 +745,7 @@
  *     Note: no locking is necessary in this function.
  */
 void
-pmap_bootstrap(ptaddr, maxasn, ncpuids)
-       paddr_t ptaddr;
-       u_int maxasn;
-       u_long ncpuids;
+pmap_bootstrap(paddr_t ptaddr, u_int maxasn, u_long ncpuids)
 {
        vsize_t lev2mapsize, lev3mapsize;
        pt_entry_t *lev2map, *lev3map;
@@ -986,7 +980,7 @@
 
 #ifdef _PMAP_MAY_USE_PROM_CONSOLE
 int
-pmap_uses_prom_console()
+pmap_uses_prom_console(void)
 {
 
 #if defined(NEW_SCC_DRIVER)
@@ -1020,9 +1014,7 @@
  *     Note: no locking is necessary in this function.
  */
 vaddr_t
-pmap_steal_memory(size, vstartp, vendp)
-       vsize_t size;
-       vaddr_t *vstartp, *vendp;
+pmap_steal_memory(vsize_t size, vaddr_t *vstartp, vaddr_t *vendp)
 {
        int bank, npgs, x;
        vaddr_t va;
@@ -1110,7 +1102,7 @@
  *     Note: no locking is necessary in this function.
  */
 void
-pmap_init()
+pmap_init(void)
 {
        vsize_t         s;
        int             bank;
@@ -1168,7 +1160,7 @@
  *     Note: no locking is necessary in this function.
  */
 pmap_t
-pmap_create()
+pmap_create(void)
 {
        pmap_t pmap;
        int i;
@@ -1213,8 +1205,7 @@
  *     all resources if the reference count drops to zero.
  */
 void
-pmap_destroy(pmap)
-       pmap_t pmap;
+pmap_destroy(pmap_t pmap)
 {
        int refs;
 
@@ -1269,8 +1260,7 @@
  *     Add a reference to the specified pmap.
  */
 void
-pmap_reference(pmap)
-       pmap_t  pmap;
+pmap_reference(pmap_t pmap)
 {
 
 #ifdef DEBUG
@@ -1293,9 +1283,7 @@
  *     rounded to the page size.
  */
 void
-pmap_remove(pmap, sva, eva)
-       pmap_t pmap;
-       vaddr_t sva, eva;
+pmap_remove(pmap_t pmap, vaddr_t sva, vaddr_t eva)
 {
        pt_entry_t *l1pte, *l2pte, *l3pte;
        pt_entry_t *saved_l1pte, *saved_l2pte, *saved_l3pte;
@@ -1452,9 +1440,7 @@
  *     the permissions specified.
  */
 void
-pmap_page_protect(pg, prot)
-       struct vm_page *pg;
-       vm_prot_t prot;
+pmap_page_protect(vm_page_t pg, vm_prot_t prot)
 {
        pmap_t pmap;
        struct pv_head *pvh;
@@ -1531,10 +1517,7 @@
  *     as requested.
  */
 void
-pmap_protect(pmap, sva, eva, prot)
-       pmap_t  pmap;
-       vaddr_t sva, eva;
-       vm_prot_t prot;
+pmap_protect(pmap_t pmap, vaddr_t sva, vaddr_t eva, vm_prot_t prot)
 {
        pt_entry_t *l1pte, *l2pte, *l3pte, bits;
        boolean_t isactive;
@@ -1620,12 +1603,7 @@
  *     insert this page into the given map NOW.
  */
 int
-pmap_enter(pmap, va, pa, prot, flags)
-       pmap_t pmap;
-       vaddr_t va;
-       paddr_t pa;
-       vm_prot_t prot;
-       int flags;
+pmap_enter(pmap_t pmap, vaddr_t va, paddr_t pa, vm_prot_t prot, int flags)
 {
        boolean_t managed;
        pt_entry_t *pte, npte, opte;
@@ -1927,10 +1905,7 @@
  *     Note: no locking is necessary in this function.
  */
 void
-pmap_kenter_pa(va, pa, prot)
-       vaddr_t va;
-       paddr_t pa;
-       vm_prot_t prot;
+pmap_kenter_pa(vaddr_t va, paddr_t pa, vm_prot_t prot)
 {
        pt_entry_t *pte, npte;
        long cpu_id = cpu_number();
@@ -1994,10 +1969,7 @@
  *     Note: no locking is necessary in this function.
  */
 void
-pmap_kenter_pgs(va, pgs, npgs)
-       vaddr_t va;
-       vm_page_t *pgs;
-       int npgs;
+pmap_kenter_pgs(vaddr_t va, vm_page_t *pgs, int npgs)
 {
        int i;
 
@@ -2020,9 +1992,7 @@
  *     starting at va, for size bytes (assumed to be page rounded).
  */
 void
-pmap_kremove(va, size)
-       vaddr_t va;
-       vsize_t size;
+pmap_kremove(vaddr_t va, vsize_t size)
 {
        pt_entry_t *pte;
        boolean_t needisync = FALSE;
@@ -2075,9 +2045,7 @@
  *     The mapping must already exist in the pmap.
  */
 void
-pmap_unwire(pmap, va)
-       pmap_t          pmap;
-       vaddr_t         va;
+pmap_unwire(pmap_t pmap, vaddr_t va)
 {
        pt_entry_t *pte;
 
@@ -2122,10 +2090,7 @@
  *     pmap/virtual address pair.
  */
 boolean_t
-pmap_extract(pmap, va, pap)
-       pmap_t  pmap;
-       vaddr_t va;
-       paddr_t *pap;
+pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap)
 {
        pt_entry_t *l1pte, *l2pte, *l3pte;
        paddr_t pa;
@@ -2177,12 +2142,8 @@
  *     This routine is only advisory and need not do anything.
  */



Home | Main Index | Thread Index | Old Index