diff options
author | peter <peter@FreeBSD.org> | 1997-05-07 19:55:13 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-05-07 19:55:13 +0000 |
commit | c252e480a617e85a02eb0918087a37a6f476efa7 (patch) | |
tree | 4fca4e97a1e1657b843a7c430ef6c49598f73c6a | |
parent | d4d54ff9b27bd077c6588191302e6aee8befd945 (diff) | |
download | FreeBSD-src-c252e480a617e85a02eb0918087a37a6f476efa7.zip FreeBSD-src-c252e480a617e85a02eb0918087a37a6f476efa7.tar.gz |
Convert md_regs from an int[] to a struct trapframe *. It simplifies
some code.
-rw-r--r-- | sys/amd64/include/proc.h | 11 | ||||
-rw-r--r-- | 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 512c9b6..e7a4744 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 512c9b6..e7a4744 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_ */ |