Home | History | Annotate | Line # | Download | only in include
proc.h revision 1.2.2.2
      1  1.2.2.2  gehenna /*	$NetBSD: proc.h,v 1.2.2.2 2002/07/16 08:36:47 gehenna Exp $	*/
      2  1.2.2.2  gehenna 
      3  1.2.2.2  gehenna /*
      4  1.2.2.2  gehenna  * Copyright (c) 1991, 1993
      5  1.2.2.2  gehenna  *	The Regents of the University of California.  All rights reserved.
      6  1.2.2.2  gehenna  *
      7  1.2.2.2  gehenna  * Redistribution and use in source and binary forms, with or without
      8  1.2.2.2  gehenna  * modification, are permitted provided that the following conditions
      9  1.2.2.2  gehenna  * are met:
     10  1.2.2.2  gehenna  * 1. Redistributions of source code must retain the above copyright
     11  1.2.2.2  gehenna  *    notice, this list of conditions and the following disclaimer.
     12  1.2.2.2  gehenna  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.2.2.2  gehenna  *    notice, this list of conditions and the following disclaimer in the
     14  1.2.2.2  gehenna  *    documentation and/or other materials provided with the distribution.
     15  1.2.2.2  gehenna  * 3. All advertising materials mentioning features or use of this software
     16  1.2.2.2  gehenna  *    must display the following acknowledgement:
     17  1.2.2.2  gehenna  *	This product includes software developed by the University of
     18  1.2.2.2  gehenna  *	California, Berkeley and its contributors.
     19  1.2.2.2  gehenna  * 4. Neither the name of the University nor the names of its contributors
     20  1.2.2.2  gehenna  *    may be used to endorse or promote products derived from this software
     21  1.2.2.2  gehenna  *    without specific prior written permission.
     22  1.2.2.2  gehenna  *
     23  1.2.2.2  gehenna  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     24  1.2.2.2  gehenna  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     25  1.2.2.2  gehenna  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     26  1.2.2.2  gehenna  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     27  1.2.2.2  gehenna  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     28  1.2.2.2  gehenna  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     29  1.2.2.2  gehenna  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     30  1.2.2.2  gehenna  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     31  1.2.2.2  gehenna  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     32  1.2.2.2  gehenna  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     33  1.2.2.2  gehenna  * SUCH DAMAGE.
     34  1.2.2.2  gehenna  *
     35  1.2.2.2  gehenna  *	@(#)proc.h	8.1 (Berkeley) 6/10/93
     36  1.2.2.2  gehenna  */
     37  1.2.2.2  gehenna 
     38  1.2.2.2  gehenna #ifndef _M68K_PROC_H
     39  1.2.2.2  gehenna #define _M68K_PROC_H
     40  1.2.2.2  gehenna 
     41  1.2.2.2  gehenna #include <machine/frame.h>
     42  1.2.2.2  gehenna struct proc;
     43  1.2.2.2  gehenna 
     44  1.2.2.2  gehenna /*
     45  1.2.2.2  gehenna  * Machine-dependent part of the proc structure for m68k-based ports.
     46  1.2.2.2  gehenna  */
     47  1.2.2.2  gehenna struct mdproc {
     48  1.2.2.2  gehenna 	int	*md_regs;		/* registers on current frame */
     49  1.2.2.2  gehenna 	int	md_flags;		/* machine-dependent flags */
     50  1.2.2.2  gehenna 	void	(*md_syscall)(register_t, struct proc *, struct frame *);
     51  1.2.2.2  gehenna };
     52  1.2.2.2  gehenna 
     53  1.2.2.2  gehenna /*
     54  1.2.2.2  gehenna  * Note: The following are the aggregate of all the MDP_* #defines from the
     55  1.2.2.2  gehenna  * various m68k-based ports at the time this file was created.
     56  1.2.2.2  gehenna  * Some of them are probably obsolete and/or not applicable to all ports.
     57  1.2.2.2  gehenna  */
     58  1.2.2.2  gehenna /* md_flags */
     59  1.2.2.2  gehenna #define	MDP_FPUSED	0x0001  /* floating point coprocessor used */
     60  1.2.2.2  gehenna #define	MDP_HPUXTRACE	0x0004  /* being traced by HP-UX process */
     61  1.2.2.2  gehenna #define	MDP_HPUXMMAP	0x0008	/* VA space is multiply mapped */
     62  1.2.2.2  gehenna #define MDP_CCBDATA	0x0010	/* copyback caching of data (68040) */
     63  1.2.2.2  gehenna #define MDP_CCBSTACK	0x0020	/* copyback caching of stack (68040) */
     64  1.2.2.2  gehenna #define MDP_STACKADJ	0x0040	/* Frame SP adjusted, might have to
     65  1.2.2.2  gehenna 				 * undo when system call returns
     66  1.2.2.2  gehenna 				 * ERESTART. */
     67  1.2.2.2  gehenna 
     68  1.2.2.2  gehenna #endif /* _M68K_PROC_H */
     69