Add prototype, remove use of register.
This commit is contained in:
parent
5a60f8df47
commit
35c6ab7eaf
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: trap.c,v 1.11 1997/09/12 08:19:02 mycroft Exp $ */
|
/* $NetBSD: trap.c,v 1.12 1997/10/10 17:46:09 oki Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
@ -81,6 +81,7 @@ extern struct emul emul_sunos;
|
|||||||
int writeback __P((struct frame *fp, int docachepush));
|
int writeback __P((struct frame *fp, int docachepush));
|
||||||
void trap __P((int type, u_int code, u_int v, struct frame frame));
|
void trap __P((int type, u_int code, u_int v, struct frame frame));
|
||||||
void syscall __P((register_t code, struct frame frame));
|
void syscall __P((register_t code, struct frame frame));
|
||||||
|
void child_return __P((struct proc *, struct frame));
|
||||||
|
|
||||||
#if defined(M68040) || defined(M68060)
|
#if defined(M68040) || defined(M68060)
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
@ -174,8 +175,8 @@ int mmupid = -1;
|
|||||||
*/
|
*/
|
||||||
static inline void
|
static inline void
|
||||||
userret(p, fp, oticks, faultaddr, fromtrap)
|
userret(p, fp, oticks, faultaddr, fromtrap)
|
||||||
register struct proc *p;
|
struct proc *p;
|
||||||
register struct frame *fp;
|
struct frame *fp;
|
||||||
u_quad_t oticks;
|
u_quad_t oticks;
|
||||||
u_int faultaddr;
|
u_int faultaddr;
|
||||||
int fromtrap;
|
int fromtrap;
|
||||||
@ -256,12 +257,12 @@ void
|
|||||||
trap(type, code, v, frame)
|
trap(type, code, v, frame)
|
||||||
int type;
|
int type;
|
||||||
unsigned code;
|
unsigned code;
|
||||||
register unsigned v;
|
unsigned v;
|
||||||
struct frame frame;
|
struct frame frame;
|
||||||
{
|
{
|
||||||
extern char fubail[], subail[];
|
extern char fubail[], subail[];
|
||||||
register struct proc *p;
|
struct proc *p;
|
||||||
register int i, s;
|
int i, s;
|
||||||
u_int ucode;
|
u_int ucode;
|
||||||
u_quad_t sticks;
|
u_quad_t sticks;
|
||||||
|
|
||||||
@ -561,9 +562,9 @@ trap(type, code, v, frame)
|
|||||||
|
|
||||||
case T_MMUFLT|T_USER: /* page fault */
|
case T_MMUFLT|T_USER: /* page fault */
|
||||||
{
|
{
|
||||||
register vm_offset_t va;
|
vm_offset_t va;
|
||||||
register struct vmspace *vm = p->p_vmspace;
|
struct vmspace *vm = p->p_vmspace;
|
||||||
register vm_map_t map;
|
vm_map_t map;
|
||||||
int rv;
|
int rv;
|
||||||
vm_prot_t ftype;
|
vm_prot_t ftype;
|
||||||
extern vm_map_t kernel_map;
|
extern vm_map_t kernel_map;
|
||||||
@ -692,8 +693,8 @@ writeback(fp, docachepush)
|
|||||||
struct frame *fp;
|
struct frame *fp;
|
||||||
int docachepush;
|
int docachepush;
|
||||||
{
|
{
|
||||||
register struct fmt7 *f = &fp->f_fmt7;
|
struct fmt7 *f = &fp->f_fmt7;
|
||||||
register struct proc *p = curproc;
|
struct proc *p = curproc;
|
||||||
int err = 0;
|
int err = 0;
|
||||||
u_int fa;
|
u_int fa;
|
||||||
caddr_t oonfault = p->p_addr->u_pcb.pcb_onfault;
|
caddr_t oonfault = p->p_addr->u_pcb.pcb_onfault;
|
||||||
@ -776,8 +777,8 @@ writeback(fp, docachepush)
|
|||||||
* Writeback #1.
|
* Writeback #1.
|
||||||
* Position the "memory-aligned" data and write it out.
|
* Position the "memory-aligned" data and write it out.
|
||||||
*/
|
*/
|
||||||
register u_int wb1d = f->f_wb1d;
|
u_int wb1d = f->f_wb1d;
|
||||||
register int off;
|
int off;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if ((mmudebug & MDB_WBFOLLOW) || MDB_ISPID(p->p_pid))
|
if ((mmudebug & MDB_WBFOLLOW) || MDB_ISPID(p->p_pid))
|
||||||
@ -921,7 +922,7 @@ writeback(fp, docachepush)
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static void
|
static void
|
||||||
dumpssw(ssw)
|
dumpssw(ssw)
|
||||||
register u_short ssw;
|
u_short ssw;
|
||||||
{
|
{
|
||||||
printf(" SSW: %x: ", ssw);
|
printf(" SSW: %x: ", ssw);
|
||||||
if (ssw & SSW4_CP)
|
if (ssw & SSW4_CP)
|
||||||
@ -952,7 +953,7 @@ dumpwb(num, s, a, d)
|
|||||||
u_short s;
|
u_short s;
|
||||||
u_int a, d;
|
u_int a, d;
|
||||||
{
|
{
|
||||||
register struct proc *p = curproc;
|
struct proc *p = curproc;
|
||||||
vm_offset_t pa;
|
vm_offset_t pa;
|
||||||
|
|
||||||
printf(" writeback #%d: VA %x, data %x, SZ=%s, TT=%s, TM=%s\n",
|
printf(" writeback #%d: VA %x, data %x, SZ=%s, TT=%s, TM=%s\n",
|
||||||
@ -977,9 +978,9 @@ syscall(code, frame)
|
|||||||
register_t code;
|
register_t code;
|
||||||
struct frame frame;
|
struct frame frame;
|
||||||
{
|
{
|
||||||
register caddr_t params;
|
caddr_t params;
|
||||||
register struct sysent *callp;
|
struct sysent *callp;
|
||||||
register struct proc *p;
|
struct proc *p;
|
||||||
int error, opc, nsys;
|
int error, opc, nsys;
|
||||||
size_t argsize;
|
size_t argsize;
|
||||||
register_t args[8], rval[2];
|
register_t args[8], rval[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user