From 6f486a5552ec9709e113c4a1e40bf6f40d83031c Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Wed, 7 May 1997 19:55:13 +0000 Subject: [PATCH] Convert md_regs from an int[] to a struct trapframe *. It simplifies some code. --- sys/amd64/include/proc.h | 11 ++++------- sys/i386/include/proc.h | 11 ++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/sys/amd64/include/proc.h b/sys/amd64/include/proc.h index 512c9b628ac..e7a4744a03b 100644 --- a/sys/amd64/include/proc.h +++ b/sys/amd64/include/proc.h @@ -31,20 +31,17 @@ * SUCH DAMAGE. * * from: @(#)proc.h 7.1 (Berkeley) 5/15/91 - * $Id$ + * $Id: proc.h,v 1.7 1997/02/22 09:34:59 peter Exp $ */ #ifndef _MACHINE_PROC_H_ -#define _MACHINE_PROC_H_ 1 +#define _MACHINE_PROC_H_ /* * Machine-dependent part of the proc structure for i386. */ struct mdproc { - int md_flags; /* machine-dependent flags */ - int *md_regs; /* registers on current frame */ + struct trapframe *md_regs; /* registers on current frame */ }; -/* md_flags */ -#define MDP_AST 0x0001 /* async trap pending */ -#endif /* _MACHINE_PROC_H_ */ +#endif /* !_MACHINE_PROC_H_ */ diff --git a/sys/i386/include/proc.h b/sys/i386/include/proc.h index 512c9b628ac..e7a4744a03b 100644 --- a/sys/i386/include/proc.h +++ b/sys/i386/include/proc.h @@ -31,20 +31,17 @@ * SUCH DAMAGE. * * from: @(#)proc.h 7.1 (Berkeley) 5/15/91 - * $Id$ + * $Id: proc.h,v 1.7 1997/02/22 09:34:59 peter Exp $ */ #ifndef _MACHINE_PROC_H_ -#define _MACHINE_PROC_H_ 1 +#define _MACHINE_PROC_H_ /* * Machine-dependent part of the proc structure for i386. */ struct mdproc { - int md_flags; /* machine-dependent flags */ - int *md_regs; /* registers on current frame */ + struct trapframe *md_regs; /* registers on current frame */ }; -/* md_flags */ -#define MDP_AST 0x0001 /* async trap pending */ -#endif /* _MACHINE_PROC_H_ */ +#endif /* !_MACHINE_PROC_H_ */