xref: /openbsd-src/sys/arch/m88k/include/proc.h (revision f5d56f6d1abf3988ecad6e5bcc0d9e60de25e475)
1*f5d56f6dSguenther /*	$OpenBSD: proc.h,v 1.8 2017/04/13 03:52:25 guenther Exp $ */
23180e169Smiod /*
33180e169Smiod  * Copyright (c) 1992, 1993
43180e169Smiod  *	The Regents of the University of California.  All rights reserved.
53180e169Smiod  *
63180e169Smiod  * This software was developed by the Computer Systems Engineering group
73180e169Smiod  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
83180e169Smiod  * contributed to Berkeley.
93180e169Smiod  *
103180e169Smiod  * All advertising materials mentioning features or use of this software
113180e169Smiod  * must display the following acknowledgement:
123180e169Smiod  *	This product includes software developed by the University of
133180e169Smiod  *	California, Lawrence Berkeley Laboratory.
143180e169Smiod  *
153180e169Smiod  * Redistribution and use in source and binary forms, with or without
163180e169Smiod  * modification, are permitted provided that the following conditions
173180e169Smiod  * are met:
183180e169Smiod  * 1. Redistributions of source code must retain the above copyright
193180e169Smiod  *    notice, this list of conditions and the following disclaimer.
203180e169Smiod  * 2. Redistributions in binary form must reproduce the above copyright
213180e169Smiod  *    notice, this list of conditions and the following disclaimer in the
223180e169Smiod  *    documentation and/or other materials provided with the distribution.
233180e169Smiod  * 3. Neither the name of the University nor the names of its contributors
243180e169Smiod  *    may be used to endorse or promote products derived from this software
253180e169Smiod  *    without specific prior written permission.
263180e169Smiod  *
273180e169Smiod  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
283180e169Smiod  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
293180e169Smiod  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
303180e169Smiod  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
313180e169Smiod  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
323180e169Smiod  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
333180e169Smiod  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
343180e169Smiod  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
353180e169Smiod  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
363180e169Smiod  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
373180e169Smiod  * SUCH DAMAGE.
383180e169Smiod  *
393180e169Smiod  *	@(#)proc.h	8.1 (Berkeley) 6/11/93
403180e169Smiod  *
413180e169Smiod  * from: Header: proc.h,v 1.6 92/11/26 02:04:41 torek Exp  (LBL)
423180e169Smiod  */
433180e169Smiod 
442fa72412Spirofti #ifndef _M88K_PROC_H_
452fa72412Spirofti #define _M88K_PROC_H_
463180e169Smiod 
4796ca406eSmiod struct trapframe;
483180e169Smiod 
493180e169Smiod /*
50fbe7d4c0Smiod  * Machine-dependent part of the proc structure for m88k.
513180e169Smiod  */
523180e169Smiod struct mdproc {
533180e169Smiod 	struct trapframe *md_tf;	/* trap/syscall registers */
54a331c5a6Smiod 	volatile int md_astpending;	/* AST pending for this process */
553180e169Smiod 
5696ca406eSmiod         /*
5796ca406eSmiod          * Single stepping is done by moving two breakpoints in the
5896ca406eSmiod          * process' code:
5996ca406eSmiod          * - one breakpoint for regular flow (i.e. the immediately following
6096ca406eSmiod          *   instruction)
6196ca406eSmiod          * - one breakpoint for potential branches.
6296ca406eSmiod          * Using two breakpoints allows us to not worry about the delay slots.
6396ca406eSmiod          */
6496ca406eSmiod 	vaddr_t	md_bp0va;
6596ca406eSmiod 	u_int	md_bp0save;
6696ca406eSmiod 	vaddr_t	md_bp1va;
6796ca406eSmiod 	u_int	md_bp1save;
683180e169Smiod };
693180e169Smiod 
702fa72412Spirofti #endif /* _M88K_PROC_H_ */
71