- remove some trailing spaces/tabs
- minor style nits
This commit is contained in:
aymeric 2002-01-26 13:24:53 +00:00
parent aa99e59f3d
commit 08fd7bc990
25 changed files with 348 additions and 352 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: amiga_bus_simple_4.c,v 1.2 2000/02/01 05:21:24 mhitch Exp $ */
/* $NetBSD: amiga_bus_simple_4.c,v 1.3 2002/01/26 13:24:53 aymeric Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -52,11 +52,8 @@ bsrm(oabs(bsrm2_swap_), u_int16_t);
bswm(oabs(bswm2_swap_), u_int16_t);
void
oabs(bsrm2_swap_)(handle, offset, pointer, count)
bus_space_handle_t handle;
bus_size_t offset;
u_int16_t *pointer;
bus_size_t count;
oabs(bsrm2_swap_)(bus_space_handle_t handle, bus_size_t offset,
u_int16_t *pointer, bus_size_t count)
{
volatile u_int16_t *p;
@ -69,11 +66,8 @@ oabs(bsrm2_swap_)(handle, offset, pointer, count)
}
void
oabs(bswm2_swap_)(handle, offset, pointer, count)
bus_space_handle_t handle;
bus_size_t offset;
const u_int16_t *pointer;
bus_size_t count;
oabs(bswm2_swap_)(bus_space_handle_t handle, bus_size_t offset,
const u_int16_t *pointer, bus_size_t count)
{
volatile u_int16_t *p;

View File

@ -1,4 +1,4 @@
/* $NetBSD: amiga_init.c,v 1.74 2001/03/02 16:29:41 mhitch Exp $ */
/* $NetBSD: amiga_init.c,v 1.75 2002/01/26 13:24:53 aymeric Exp $ */
/*
* Copyright (c) 1994 Michael L. Hitch
@ -117,19 +117,18 @@ static u_long boot_flags;
u_long scsi_nosync;
int shift_nosync;
void start_c __P((int, u_int, u_int, u_int, char *, u_int, u_long, u_long));
void rollcolor __P((int));
static int kernel_image_magic_size __P((void));
static void kernel_image_magic_copy __P((u_char *));
int kernel_reload_write __P((struct uio *));
extern void kernel_reload __P((char *, u_long, u_long, u_long, u_long,
u_long, u_long, u_long, u_long, u_long, u_long));
extern void etext __P((void));
void start_c_cleanup __P((void));
void start_c(int, u_int, u_int, u_int, char *, u_int, u_long, u_long);
void rollcolor(int);
static int kernel_image_magic_size(void);
static void kernel_image_magic_copy(u_char *);
int kernel_reload_write(struct uio *);
extern void kernel_reload(char *, u_long, u_long, u_long, u_long,
u_long, u_long, u_long, u_long, u_long, u_long);
extern void etext(void);
void start_c_cleanup(void);
void *
chipmem_steal(amount)
long amount;
chipmem_steal(long amount)
{
/*
* steal from top of chipmem, so we don't collide with

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.78 2001/02/02 21:52:12 is Exp $ */
/* $NetBSD: autoconf.c,v 1.79 2002/01/26 13:24:53 aymeric Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@ -42,10 +42,10 @@
#include <amiga/amiga/device.h>
#include <amiga/amiga/custom.h>
static void findroot __P((void));
void mbattach __P((struct device *, struct device *, void *));
int mbprint __P((void *, const char *));
int mbmatch __P((struct device *, struct cfdata *, void *));
static void findroot(void);
void mbattach(struct device *, struct device *, void *);
int mbprint(void *, const char *);
int mbmatch(struct device *, struct cfdata *, void *);
#include <sys/kernel.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: busfuncs.c,v 1.6 1999/02/16 23:34:12 is Exp $ */
/* $NetBSD: busfuncs.c,v 1.7 2002/01/26 13:24:53 aymeric Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.

View File

@ -1,4 +1,4 @@
/* $NetBSD: cc.c,v 1.12 1998/08/20 19:55:06 veego Exp $ */
/* $NetBSD: cc.c,v 1.13 2002/01/26 13:24:53 aymeric Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps

View File

@ -1,4 +1,4 @@
/* $NetBSD: cc.h,v 1.12 2001/12/01 13:44:22 aymeric Exp $ */
/* $NetBSD: cc.h,v 1.13 2002/01/26 13:24:53 aymeric Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@ -177,43 +177,43 @@ vaddr_t chipmem_end;
/*
* Prototypes.
*/
void custom_chips_init __P((void));
void custom_chips_init(void);
/* vertical blank server chain */
void cc_init_vbl __P((void));
void add_vbl_function __P((struct vbl_node *, short, void *));
void remove_vbl_function __P((struct vbl_node *));
void turn_vbl_function_off __P((struct vbl_node *));
void turn_vbl_function_on __P((struct vbl_node *));
void cc_init_vbl(void);
void add_vbl_function(struct vbl_node *, short, void *);
void remove_vbl_function(struct vbl_node *);
void turn_vbl_function_off(struct vbl_node *);
void turn_vbl_function_on(struct vbl_node *);
/* blitter */
void cc_init_blitter __P((void));
int is_blitter_busy __P((void));
void wait_blit __P((void));
void blitter_handler __P((void));
void do_blit __P((u_short));
void set_blitter_control __P((u_short, u_short));
void set_blitter_mods __P((u_short, u_short, u_short, u_short));
void set_blitter_masks __P((u_short, u_short));
void set_blitter_data __P((u_short, u_short, u_short));
void set_blitter_pointers __P((void *, void *, void *, void *));
void cc_init_blitter(void);
int is_blitter_busy(void);
void wait_blit(void);
void blitter_handler(void);
void do_blit(u_short);
void set_blitter_control(u_short, u_short);
void set_blitter_mods(u_short, u_short, u_short, u_short);
void set_blitter_masks(u_short, u_short);
void set_blitter_data(u_short, u_short, u_short);
void set_blitter_pointers(void *, void *, void *, void *);
/* copper */
void install_copper_list __P((cop_t *));
cop_t *find_copper_inst __P((cop_t *, u_short));
void cc_init_copper __P((void));
void copper_handler __P((void));
void install_copper_list(cop_t *);
cop_t *find_copper_inst(cop_t *, u_short);
void cc_init_copper(void);
void copper_handler(void);
/* audio */
void cc_init_audio __P((void));
void play_sample __P((u_short, u_short *, u_short, u_short, u_short, u_long));
void audio_handler __P((void));
void cc_init_audio(void);
void play_sample(u_short, u_short *, u_short, u_short, u_short, u_long);
void audio_handler(void);
/* chipmem */
void cc_init_chipmem __P((void));
void * alloc_chipmem __P((u_long));
void free_chipmem __P((void *));
u_long avail_chipmem __P((int));
u_long sizeof_chipmem __P((void *));
void cc_init_chipmem(void);
void * alloc_chipmem(u_long);
void free_chipmem(void *);
u_long avail_chipmem(int);
u_long sizeof_chipmem(void *);
void wait_tof __P((void));
void vbl_handler __P((void));
void *chipmem_steal __P((long));
void wait_tof(void);
void vbl_handler(void);
void *chipmem_steal(long);
#endif /* _CC_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: cia.c,v 1.6 1995/02/12 19:34:17 chopps Exp $ */
/* $NetBSD: cia.c,v 1.7 2002/01/26 13:24:53 aymeric Exp $ */
/*
* Copyright (c) 1993 Markus Wild
@ -51,12 +51,12 @@
struct cia_intr_dispatch {
u_char mask;
void (*handler) __P ((int));
void (*handler)(int);
};
static void not_used __P((int));
void kbdintr __P((int));
void parintr __P((int));
static void not_used(int);
void kbdintr(int);
void parintr(int);
/* handlers for CIA-A (IPL-2) */
static struct cia_intr_dispatch ciaa_ints[] = {

View File

@ -1,4 +1,4 @@
/* $NetBSD: cia.h,v 1.11 2001/08/31 04:44:55 simonb Exp $ */
/* $NetBSD: cia.h,v 1.12 2002/01/26 13:24:53 aymeric Exp $ */
/*
* Mach Operating System
@ -138,8 +138,8 @@ vaddr_t CIAAbase, CIABbase, CIAADDR;
#define CLRDSR(c) (c |= CIAB_PRA_DSR)
#define ISDSR(c) (!(c & CIAB_PRA_DSR))
void dispatch_cia_ints __P((int, int));
void ciaa_intr __P((void));
void ciab_intr __P((void));
void dispatch_cia_ints(int, int);
void ciaa_intr(void);
void ciab_intr(void);
#endif /* _AMIGA_CIA_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: color.h,v 1.8 1995/02/12 19:34:17 chopps Exp $ */
/* $NetBSD: color.h,v 1.9 2002/01/26 13:24:53 aymeric Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@ -56,5 +56,5 @@
#define COL24_LGREY 0x0880
#define COL24_WHITE 0xffff
void rollcolor __P((int));
void rollcolor(int);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.62 2001/03/21 22:25:53 lukem Exp $ */
/* $NetBSD: conf.c,v 1.63 2002/01/26 13:24:53 aymeric Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -193,9 +193,9 @@ struct cdevsw cdevsw[] =
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
#ifdef BANKEDDEVPAGER
extern int grfbanked_get __P((int, int, int));
extern int grfbanked_set __P((int, int));
extern int grfbanked_cur __P((int));
extern int grfbanked_get(int, int, int);
extern int grfbanked_set(int, int);
extern int grfbanked_cur(int);
struct bankeddevsw bankeddevsw[sizeof (cdevsw) / sizeof (cdevsw[0])] = {
{ 0, 0, 0 }, /* 0 */

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_memrw.c,v 1.11 2000/06/29 08:44:03 mrg Exp $ */
/* $NetBSD: db_memrw.c,v 1.12 2002/01/26 13:24:53 aymeric Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -57,11 +57,11 @@
#include <m68k/cacheops.h>
static char db_read_data __P((char *src));
void db_read_bytes __P((db_addr_t addr, register int size, register char *data));
static void db_write_text __P((char *dst, int ch));
static void db_write_data __P((char *dst, int ch));
void db_write_bytes __P((db_addr_t addr, int size, char *data));
static char db_read_data(char *src);
void db_read_bytes(db_addr_t addr, register int size, register char *data);
static void db_write_text(char *dst, int ch);
static void db_write_data(char *dst, int ch);
void db_write_bytes(db_addr_t addr, int size, char *data);
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: device.h,v 1.6 1996/08/27 21:54:26 cgd Exp $ */
/* $NetBSD: device.h,v 1.7 2002/01/26 13:24:54 aymeric Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@ -37,11 +37,10 @@
* *and know it* (i.e. everything is really tight certain params won't be
* passed in some cases and the devices will deal with it)
*/
void config_console __P((void));
int amiga_config_found __P((struct cfdata *, struct device *,
void *, cfprint_t ));
int simple_devprint __P((void *, const char *));
int matchname __P((char *, char *));
void config_console(void);
int amiga_config_found(struct cfdata *, struct device *, void *, cfprint_t );
int simple_devprint(void *, const char *);
int matchname(char *, char *);
/*
* false when initing for the console.
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: disksubr.c,v 1.37 2001/05/06 20:49:43 is Exp $ */
/* $NetBSD: disksubr.c,v 1.38 2002/01/26 13:24:54 aymeric Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@ -81,10 +81,10 @@ struct rdbmap {
#define baddr(bp) (void *)((bp)->b_data)
u_long rdbchksum __P((void *));
struct adostype getadostype __P((u_long));
struct rdbmap *getrdbmap __P((dev_t, void (*)(struct buf *), struct disklabel *,
struct cpu_disklabel *));
u_long rdbchksum(void *);
struct adostype getadostype(u_long);
struct rdbmap *getrdbmap(dev_t, void (*)(struct buf *), struct disklabel *,
struct cpu_disklabel *);
/*
* Attempt to read a disk label from a device

View File

@ -1,4 +1,4 @@
/* $NetBSD: dkbad.c,v 1.7 1996/04/21 21:07:00 veego Exp $ */
/* $NetBSD: dkbad.c,v 1.8 2002/01/26 13:24:54 aymeric Exp $ */
/*
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@ -40,7 +40,7 @@
#include <sys/buf.h>
#include <sys/dkbad.h>
int isbad __P((struct dkbad *, int, int, int));
int isbad(struct dkbad *, int, int, int);
/*
* Search the bad sector table looking for

View File

@ -1,5 +1,5 @@
/*
* $NetBSD: drcustom.h,v 1.4 1999/09/25 21:47:04 is Exp $
* $NetBSD: drcustom.h,v 1.5 2002/01/26 13:24:54 aymeric Exp $
*
* Motherboard addresses for the DraCo.
*

View File

@ -1,4 +1,6 @@
/* $NetBSD: gayle.h,v 1.1 2000/01/23 20:53:18 aymeric Exp $ */
/* $NetBSD: gayle.h,v 1.2 2002/01/26 13:24:54 aymeric Exp $ */
#ifndef AMIGA_GAYLE_H_
#define AMIGA_GAYLE_H_
#include <sys/types.h>
@ -51,4 +53,6 @@ struct gayle_struct {
extern struct gayle_struct *gayle_base_virtual_address;
#define gayle (*gayle_base_virtual_address)
void gayle_init __P((void));
void gayle_init(void);
#endif /* AMIGA_GAYLE_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: isr.h,v 1.8 1996/04/21 21:07:02 veego Exp $ */
/* $NetBSD: isr.h,v 1.9 2002/01/26 13:24:54 aymeric Exp $ */
/*
* Copyright (c) 1982 Regents of the University of California.
@ -38,7 +38,7 @@
struct isr {
struct isr *isr_forw;
struct isr *isr_back;
int (*isr_intr) __P((void *));
int (*isr_intr)(void *);
void *isr_arg;
int isr_ipl;
};
@ -47,10 +47,10 @@ struct isr {
#define ISRIPL(x) ((x) - 3)
#ifdef _KERNEL
void add_isr __P((struct isr *));
void remove_isr __P((struct isr *));
typedef void (*sifunc_t) __P((void *, void *));
void alloc_sicallback __P((void));
void add_sicallback __P((sifunc_t, void *, void *));
void rem_sicallback __P((sifunc_t));
void add_isr(struct isr *);
void remove_isr(struct isr *);
typedef void (*sifunc_t)(void *, void *);
void alloc_sicallback(void);
void add_sicallback(sifunc_t, void *, void *);
void rem_sicallback(sifunc_t);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.129 2002/01/12 11:45:26 aymeric Exp $ */
/* $NetBSD: locore.s,v 1.130 2002/01/26 13:24:54 aymeric Exp $ */
/*
* Copyright (c) 1988 University of Utah.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.165 2001/11/07 23:25:03 aymeric Exp $ */
/* $NetBSD: machdep.c,v 1.166 2002/01/26 13:24:54 aymeric Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -106,20 +106,20 @@
#include "ser.h"
/* prototypes */
void identifycpu __P((void));
vm_offset_t reserve_dumppages __P((vm_offset_t));
void dumpsys __P((void));
void initcpu __P((void));
void straytrap __P((int, u_short));
static void netintr __P((void));
static void call_sicallbacks __P((void));
static void _softintr_callit __P((void *, void *));
void intrhand __P((int));
void identifycpu(void);
vm_offset_t reserve_dumppages(vm_offset_t);
void dumpsys(void);
void initcpu(void);
void straytrap(int, u_short);
static void netintr(void);
static void call_sicallbacks(void);
static void _softintr_callit(void *, void *);
void intrhand(int);
#if NSER > 0
void ser_outintr __P((void));
void ser_outintr(void);
#endif
#if NFD > 0
void fdintr __P((int));
void fdintr(int);
#endif
volatile unsigned int interrupt_depth = 0;
@ -679,7 +679,7 @@ dumpsys()
unsigned bytes, i, n, seg;
int maddr, psize;
daddr_t blkno;
int (*dump) __P((dev_t, daddr_t, caddr_t, size_t));
int (*dump)(dev_t, daddr_t, caddr_t, size_t);
int error = 0;
kcore_seg_t *kseg_p;
cpu_kcore_hdr_t *chdr_p;
@ -822,7 +822,7 @@ microtime(tvp)
void
initcpu()
{
typedef void trapfun __P((void));
typedef void trapfun(void);
/* XXX should init '40 vecs here, too */
#if defined(M68060) || defined(M68040) || defined(DRACO) || defined(FPU_EMULATE)
@ -1028,7 +1028,7 @@ netintr()
*/
struct si_callback {
struct si_callback *next;
void (*function) __P((void *rock1, void *rock2));
void (*function)(void *rock1, void *rock2);
void *rock1, *rock2;
};
static struct si_callback *si_callbacks;
@ -1057,7 +1057,7 @@ _softintr_callit(rock1, rock2)
void *
softintr_establish(ipl, func, arg)
int ipl;
void func __P((void *));
void func(void *);
void *arg;
{
struct si_callback *si;
@ -1120,7 +1120,7 @@ softintr_schedule(vsi)
void
add_sicallback (function, rock1, rock2)
void (*function) __P((void *rock1, void *rock2));
void (*function)(void *rock1, void *rock2);
void *rock1, *rock2;
{
struct si_callback *si;
@ -1166,7 +1166,7 @@ add_sicallback (function, rock1, rock2)
void
rem_sicallback(function)
void (*function) __P((void *rock1, void *rock2));
void (*function)(void *rock1, void *rock2);
{
struct si_callback *si, *psi, *nsi;
int s;
@ -1198,7 +1198,7 @@ call_sicallbacks()
struct si_callback *si;
int s;
void *rock1, *rock2;
void (*function) __P((void *, void *));
void (*function)(void *, void *);
do {
s = splhigh ();
@ -1522,7 +1522,7 @@ intrhand(sr)
int panicbutton = 1; /* non-zero if panic buttons are enabled */
int crashandburn = 0;
int candbdelay = 50; /* give em half a second */
void candbtimer __P((void));
void candbtimer(void);
struct callout candbtimer_ch = CALLOUT_INITIALIZER;
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: memlist.h,v 1.4 1994/10/26 02:02:02 cgd Exp $ */
/* $NetBSD: memlist.h,v 1.5 2002/01/26 13:24:54 aymeric Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.97 2002/01/02 00:51:33 chs Exp $ */
/* $NetBSD: pmap.c,v 1.98 2002/01/26 13:24:54 aymeric Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -186,8 +186,8 @@ int pmapdebug = PDB_PARANOIA;
#define PMAP_DPRINTF(l, x) if (pmapdebug & (l)) printf x
static void pmap_check_wiring __P((char *, vaddr_t));
static void pmap_pvdump __P((paddr_t));
static void pmap_check_wiring(char *, vaddr_t);
static void pmap_pvdump(paddr_t);
#else
#define PMAP_DPRINTF(l, x)
#endif
@ -302,21 +302,21 @@ extern const vaddr_t amiga_uptbase;
extern paddr_t z2mem_start;
extern vaddr_t reserve_dumppages __P((vaddr_t));
extern vaddr_t reserve_dumppages(vaddr_t);
boolean_t pmap_testbit __P((paddr_t, int));
void pmap_enter_ptpage __P((pmap_t, vaddr_t));
static void pmap_ptpage_addref __P((vaddr_t));
static int pmap_ptpage_delref __P((vaddr_t));
static void pmap_changebit __P((vaddr_t, int, boolean_t));
struct pv_entry * pmap_alloc_pv __P((void));
void pmap_free_pv __P((struct pv_entry *));
void pmap_pinit __P((pmap_t));
void pmap_release __P((pmap_t));
static void pmap_remove_mapping __P((pmap_t, vaddr_t, pt_entry_t *, int));
boolean_t pmap_testbit(paddr_t, int);
void pmap_enter_ptpage(pmap_t, vaddr_t);
static void pmap_ptpage_addref(vaddr_t);
static int pmap_ptpage_delref(vaddr_t);
static void pmap_changebit(vaddr_t, int, boolean_t);
struct pv_entry * pmap_alloc_pv(void);
void pmap_free_pv(struct pv_entry *);
void pmap_pinit(pmap_t);
void pmap_release(pmap_t);
static void pmap_remove_mapping(pmap_t, vaddr_t, pt_entry_t *, int);
static void amiga_protection_init __P((void));
void pmap_collect1 __P((pmap_t, paddr_t, paddr_t));
static void amiga_protection_init(void);
void pmap_collect1(pmap_t, paddr_t, paddr_t);
/* pmap_remove_mapping flags */
#define PRM_TFLUSH 0x01

View File

@ -1,4 +1,4 @@
/* $NetBSD: simple_busfuncs.c,v 1.2 2000/01/23 21:02:18 aymeric Exp $ */
/* $NetBSD: simple_busfuncs.c,v 1.3 2002/01/26 13:24:55 aymeric Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -56,13 +56,13 @@ Error AMIGA_SIMPLE_BUS_STRIDE not defined in __FILE__, line __LINE__ .
/* function declarations */
int oabs(bsm_)__P((bus_space_tag_t, bus_addr_t, bus_size_t, int,
bus_space_handle_t *));
int oabs(bsm_)(bus_space_tag_t, bus_addr_t, bus_size_t, int,
bus_space_handle_t *);
int oabs(bsms_)__P((bus_space_handle_t, bus_size_t, bus_size_t,
bus_space_handle_t *));
int oabs(bsms_)(bus_space_handle_t, bus_size_t, bus_size_t,
bus_space_handle_t *);
void oabs(bsu_)__P((bus_space_handle_t, bus_size_t));
void oabs(bsu_)(bus_space_handle_t, bus_size_t);
bsr (oabs(bsr1_), u_int8_t);
bsw (oabs(bsw1_), u_int8_t);

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_machdep.c,v 1.29 2000/12/13 18:13:05 jdolecek Exp $ */
/* $NetBSD: sys_machdep.c,v 1.30 2002/01/26 13:24:55 aymeric Exp $ */
/*
* Copyright (c) 1982, 1986 Regents of the University of California.

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.85 2001/06/02 18:09:09 chs Exp $ */
/* $NetBSD: trap.c,v 1.86 2002/01/26 13:24:55 aymeric Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -180,18 +180,18 @@ int mmudebug = 0;
extern struct pcb *curpcb;
extern char fubail[], subail[];
int _write_back __P((u_int, u_int, u_int, u_int, struct vm_map *));
static void userret __P((struct proc *, int, u_quad_t));
void panictrap __P((int, u_int, u_int, struct frame *));
void trapcpfault __P((struct proc *, struct frame *));
void trapmmufault __P((int, u_int, u_int, struct frame *, struct proc *,
u_quad_t));
void trap __P((int, u_int, u_int, struct frame));
int _write_back(u_int, u_int, u_int, u_int, struct vm_map *);
static void userret(struct proc *, int, u_quad_t);
void panictrap(int, u_int, u_int, struct frame *);
void trapcpfault(struct proc *, struct frame *);
void trapmmufault(int, u_int, u_int, struct frame *, struct proc *,
u_quad_t);
void trap(int, u_int, u_int, struct frame);
#ifdef DDB
#include <m68k/db_machdep.h>
int kdb_trap __P((int, db_regs_t *));
int kdb_trap(int, db_regs_t *);
#endif
void _wb_fault __P((void));
void _wb_fault(void);
static void

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.61 2001/09/10 21:19:10 chris Exp $ */
/* $NetBSD: vm_machdep.c,v 1.62 2002/01/26 13:24:55 aymeric Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -84,7 +84,7 @@ cpu_fork(p1, p2, stack, stacksize, func, arg)
register struct proc *p1, *p2;
void *stack;
size_t stacksize;
void (*func) __P((void *));
void (*func)(void *);
void *arg;
{
register struct pcb *pcb = &p2->p_addr->u_pcb;