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