Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / i386 / include / macho_machdep.h
blob91491d83699a084cc3d32a7bf666aa76789b3cf3
1 /* $NetBSD: macho_machdep.h,v 1.3 2002/10/29 22:22:31 manu Exp $ */
3 /*-
4 * Copyright (c) 2001 The NetBSD Foundation, Inc.
5 * All rights reserved.
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Christos Zoulas.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
32 #ifndef _I386_MACHO_MACHDEP_H_
33 #define _I386_MACHO_MACHDEP_H_
35 #define MACHO_I386_THREAD_STATE -1
36 struct exec_macho_i386_thread_state {
37 unsigned int eax;
38 unsigned int ebx;
39 unsigned int ecx;
40 unsigned int edx;
41 unsigned int edi;
42 unsigned int esi;
43 unsigned int ebp;
44 unsigned int esp;
45 unsigned int ss;
46 unsigned int eflags;
47 unsigned int eip;
48 unsigned int cs;
49 unsigned int ds;
50 unsigned int es;
51 unsigned int fs;
52 unsigned int gs;
55 #define MACHO_I386_NEW_THREAD_STATE 1
56 struct exec_macho_i386_saved_state {
57 unsigned int gs;
58 unsigned int fs;
59 unsigned int es;
60 unsigned int ds;
61 unsigned int edi;
62 unsigned int esi;
63 unsigned int ebp;
64 unsigned int esp;
65 unsigned int ebx;
66 unsigned int edx;
67 unsigned int ecx;
68 unsigned int eax;
69 unsigned int trapno;
70 unsigned int err;
71 unsigned int eip;
72 unsigned int cs;
73 unsigned int efl;
74 unsigned int uesp;
75 unsigned int ss;
76 struct vm86_segs {
77 unsigned int es;
78 unsigned int ds;
79 unsigned int fs;
80 unsigned int gs;
81 } vm86_segs;
82 #define MACHO_I386_SAVED_ARGV_COUNT 7
83 unsigned int argv_status;
84 unsigned int argv[MACHO_I386_SAVED_ARGV_COUNT];
87 #endif /* !_I386_MACHO_MACHDEP_H_ */