__sparc_utrap_private.h revision 88794
188794Sjake/*-
288794Sjake * Copyright (c) 2001 Jake Burkholder.
388794Sjake * All rights reserved.
488794Sjake *
588794Sjake * Redistribution and use in source and binary forms, with or without
688794Sjake * modification, are permitted provided that the following conditions
788794Sjake * are met:
888794Sjake * 1. Redistributions of source code must retain the above copyright
988794Sjake *    notice, this list of conditions and the following disclaimer.
1088794Sjake * 2. Redistributions in binary form must reproduce the above copyright
1188794Sjake *    notice, this list of conditions and the following disclaimer in the
1288794Sjake *    documentation and/or other materials provided with the distribution.
1388794Sjake *
1488794Sjake * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1588794Sjake * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1688794Sjake * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1788794Sjake * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1888794Sjake * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1988794Sjake * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2088794Sjake * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2188794Sjake * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2288794Sjake * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2388794Sjake * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2488794Sjake * SUCH DAMAGE.
2588794Sjake *
2688794Sjake * $FreeBSD: head/lib/libc/sparc64/sys/__sparc_utrap_private.h 88794 2002-01-01 21:58:32Z jake $
2788794Sjake */
2888794Sjake
2988794Sjake#ifndef	___SPARC_UTRAP_PRIVATE_H_
3088794Sjake#define	___SPARC_UTRAP_PRIVATE_H_
3188794Sjake
3288794Sjake#define	UF_DONE(uf) do {						\
3388794Sjake	uf->uf_pc = uf->uf_npc;						\
3488794Sjake	uf->uf_npc = uf->uf_pc + 4;					\
3588794Sjake} while (0)
3688794Sjake
3788794Sjakestruct utrapframe {
3888794Sjake	u_long	uf_global[8];
3988794Sjake	u_long	uf_out[8];
4088794Sjake	u_long	uf_pc;
4188794Sjake	u_long	uf_npc;
4288794Sjake	u_long	uf_sfar;
4388794Sjake	u_long	uf_sfsr;
4488794Sjake	u_long	uf_tar;
4588794Sjake	u_long	uf_type;
4688794Sjake};
4788794Sjake
4888794Sjakeextern char __sparc_utrap_fp_disabled[];
4988794Sjakeextern char __sparc_utrap_gen[];
5088794Sjake
5188794Sjakevoid __sparc_utrap(struct utrapframe *);
5288794Sjake
5388794Sjake#endif
54