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