1d8315c79SWarner Losh /*- 26fc729afSOlivier Houchard * Copyright (c) 1991 Regents of the University of California. 36fc729afSOlivier Houchard * All rights reserved. 46fc729afSOlivier Houchard * 56fc729afSOlivier Houchard * Redistribution and use in source and binary forms, with or without 66fc729afSOlivier Houchard * modification, are permitted provided that the following conditions 76fc729afSOlivier Houchard * are met: 86fc729afSOlivier Houchard * 1. Redistributions of source code must retain the above copyright 96fc729afSOlivier Houchard * notice, this list of conditions and the following disclaimer. 106fc729afSOlivier Houchard * 2. Redistributions in binary form must reproduce the above copyright 116fc729afSOlivier Houchard * notice, this list of conditions and the following disclaimer in the 126fc729afSOlivier Houchard * documentation and/or other materials provided with the distribution. 136fc729afSOlivier Houchard * 3. All advertising materials mentioning features or use of this software 146fc729afSOlivier Houchard * must display the following acknowledgement: 156fc729afSOlivier Houchard * This product includes software developed by the University of 166fc729afSOlivier Houchard * California, Berkeley and its contributors. 176fc729afSOlivier Houchard * 4. Neither the name of the University nor the names of its contributors 186fc729afSOlivier Houchard * may be used to endorse or promote products derived from this software 196fc729afSOlivier Houchard * without specific prior written permission. 206fc729afSOlivier Houchard * 216fc729afSOlivier Houchard * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 226fc729afSOlivier Houchard * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 236fc729afSOlivier Houchard * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 246fc729afSOlivier Houchard * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 256fc729afSOlivier Houchard * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 266fc729afSOlivier Houchard * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 276fc729afSOlivier Houchard * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 286fc729afSOlivier Houchard * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 296fc729afSOlivier Houchard * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 306fc729afSOlivier Houchard * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 316fc729afSOlivier Houchard * SUCH DAMAGE. 326fc729afSOlivier Houchard * 336fc729afSOlivier Houchard * from: @(#)proc.h 7.1 (Berkeley) 5/15/91 346fc729afSOlivier Houchard * from: FreeBSD: src/sys/i386/include/proc.h,v 1.11 2001/06/29 356fc729afSOlivier Houchard * $FreeBSD$ 366fc729afSOlivier Houchard */ 376fc729afSOlivier Houchard 386fc729afSOlivier Houchard #ifndef _MACHINE_PROC_H_ 396fc729afSOlivier Houchard #define _MACHINE_PROC_H_ 406fc729afSOlivier Houchard 416fc729afSOlivier Houchard #include <machine/utrap.h> 426fc729afSOlivier Houchard 436fc729afSOlivier Houchard struct md_utrap { 446fc729afSOlivier Houchard utrap_entry_t *ut_precise[UT_MAX]; /* must be first */ 456fc729afSOlivier Houchard int ut_refcnt; 466fc729afSOlivier Houchard }; 476fc729afSOlivier Houchard 486fc729afSOlivier Houchard struct mdthread { 49c6a37e84SJohn Baldwin int md_spinlock_count; /* (k) */ 50c6a37e84SJohn Baldwin register_t md_saved_cspr; /* (k) */ 519026d36cSOlivier Houchard int md_ptrace_instr; 529026d36cSOlivier Houchard int md_ptrace_addr; 53b6e41949SOlivier Houchard void *md_tp; 546fc729afSOlivier Houchard }; 556fc729afSOlivier Houchard 566fc729afSOlivier Houchard struct mdproc { 576fc729afSOlivier Houchard struct md_utrap *md_utrap; 586fc729afSOlivier Houchard void *md_sigtramp; 596fc729afSOlivier Houchard }; 606fc729afSOlivier Houchard 616fc729afSOlivier Houchard #endif /* !_MACHINE_PROC_H_ */ 62