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