xref: /openbsd-src/sys/arch/sparc64/include/ptrace.h (revision ab81dc668c616a195ba04d9a17ffdfd27f3bef0b)
1*ab81dc66Skettenis /*	$OpenBSD: ptrace.h,v 1.3 2005/03/29 19:34:07 kettenis Exp $	*/
295264e8bSjason /*	$NetBSD: ptrace.h,v 1.1.1.1 1998/06/20 04:58:52 eeh Exp $ */
395264e8bSjason 
495264e8bSjason /*
595264e8bSjason  * Copyright (c) 1992, 1993
695264e8bSjason  *	The Regents of the University of California.  All rights reserved.
795264e8bSjason  *
895264e8bSjason  * This software was developed by the Computer Systems Engineering group
995264e8bSjason  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
1095264e8bSjason  * contributed to Berkeley.
1195264e8bSjason  *
1295264e8bSjason  * All advertising materials mentioning features or use of this software
1395264e8bSjason  * must display the following acknowledgement:
1495264e8bSjason  *	This product includes software developed by the University of
1595264e8bSjason  *	California, Lawrence Berkeley Laboratory.
1695264e8bSjason  *
1795264e8bSjason  * Redistribution and use in source and binary forms, with or without
1895264e8bSjason  * modification, are permitted provided that the following conditions
1995264e8bSjason  * are met:
2095264e8bSjason  * 1. Redistributions of source code must retain the above copyright
2195264e8bSjason  *    notice, this list of conditions and the following disclaimer.
2295264e8bSjason  * 2. Redistributions in binary form must reproduce the above copyright
2395264e8bSjason  *    notice, this list of conditions and the following disclaimer in the
2495264e8bSjason  *    documentation and/or other materials provided with the distribution.
2529295d1cSmillert  * 3. Neither the name of the University nor the names of its contributors
2695264e8bSjason  *    may be used to endorse or promote products derived from this software
2795264e8bSjason  *    without specific prior written permission.
2895264e8bSjason  *
2995264e8bSjason  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
3095264e8bSjason  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
3195264e8bSjason  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
3295264e8bSjason  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
3395264e8bSjason  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3495264e8bSjason  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
3595264e8bSjason  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3695264e8bSjason  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3795264e8bSjason  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3895264e8bSjason  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3995264e8bSjason  * SUCH DAMAGE.
4095264e8bSjason  *
4195264e8bSjason  *	@(#)ptrace.h	8.1 (Berkeley) 6/11/93
4295264e8bSjason  */
4395264e8bSjason 
4495264e8bSjason /*
4595264e8bSjason  * SPARC-dependent ptrace definitions.
4695264e8bSjason  */
4795264e8bSjason #define	PT_GETREGS	(PT_FIRSTMACH + 0)
4895264e8bSjason #define	PT_SETREGS	(PT_FIRSTMACH + 1)
4995264e8bSjason #define	PT_GETFPREGS	(PT_FIRSTMACH + 2)
5095264e8bSjason #define	PT_SETFPREGS	(PT_FIRSTMACH + 3)
51*ab81dc66Skettenis #define PT_WCOOKIE	(PT_FIRSTMACH + 4)
52*ab81dc66Skettenis 
53*ab81dc66Skettenis #ifdef _KERNEL
54*ab81dc66Skettenis register_t process_get_wcookie(struct proc *p);
55*ab81dc66Skettenis #endif
56