mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Convert md_regs from an int[] to a struct trapframe *. It simplifies
some code.
This commit is contained in:
parent
2263dd148e
commit
6f486a5552
2 changed files with 8 additions and 14 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue