142421Syokota/*-
242421Syokota * Copyright (c) 2000 Doug Rabson
342421Syokota * All rights reserved.
442421Syokota *
542421Syokota * Redistribution and use in source and binary forms, with or without
642421Syokota * modification, are permitted provided that the following conditions
742421Syokota * are met:
842421Syokota * 1. Redistributions of source code must retain the above copyright
942421Syokota *    notice, this list of conditions and the following disclaimer.
1042421Syokota * 2. Redistributions in binary form must reproduce the above copyright
1142421Syokota *    notice, this list of conditions and the following disclaimer in the
1242421Syokota *    documentation and/or other materials provided with the distribution.
1342421Syokota *
1442421Syokota * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1542421Syokota * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1642421Syokota * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1742421Syokota * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1842421Syokota * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1942421Syokota * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2042421Syokota * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2142421Syokota * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2242421Syokota * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2342421Syokota * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2442421Syokota * SUCH DAMAGE.
2542421Syokota *
2642421Syokota *	$FreeBSD: releng/10.3/sys/ia64/include/frame.h 205428 2010-03-21 22:33:09Z marcel $
2742421Syokota */
2842421Syokota
2942421Syokota#ifndef _MACHINE_FRAME_H_
3042421Syokota#define	_MACHINE_FRAME_H_
3142421Syokota
3242421Syokota#ifndef _MACHINE_REGSET_H_
33119418Sobrien#include <machine/_regset.h>
34119418Sobrien#endif
35119418Sobrien
3642421Syokota/*
3742421Syokota * Software trap, exception, and syscall frame.
3842421Syokota */
3942421Syokotastruct trapframe {
4058271Syokota	uint64_t		tf_length;
4142421Syokota	uint64_t		tf_flags;
4242421Syokota#define FRAME_SYSCALL		1	/* syscalls use a partial trapframe */
4358271Syokota	struct _special		tf_special;
4458271Syokota	struct _caller_saved	tf_scratch;
4558271Syokota	struct _caller_saved_fp	tf_scratch_fp;
4642421Syokota};
47147271Smarius
4842421Syokota#endif /* _MACHINE_FRAME_H_ */
49147271Smarius