ucontext.h revision 115084
1356843Sdim/*- 2356843Sdim * Copyright (c) 1999 Marcel Moolenaar 3356843Sdim * All rights reserved. 4356843Sdim * 5356843Sdim * Redistribution and use in source and binary forms, with or without 6356843Sdim * modification, are permitted provided that the following conditions 7356843Sdim * are met: 8356843Sdim * 1. Redistributions of source code must retain the above copyright 9356843Sdim * notice, this list of conditions and the following disclaimer 10356843Sdim * in this position and unchanged. 11356843Sdim * 2. Redistributions in binary form must reproduce the above copyright 12356843Sdim * notice, this list of conditions and the following disclaimer in the 13356843Sdim * documentation and/or other materials provided with the distribution. 14356843Sdim * 3. The name of the author may not be used to endorse or promote products 15356843Sdim * derived from this software without specific prior written permission. 16356843Sdim * 17356843Sdim * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18356843Sdim * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19356843Sdim * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20356843Sdim * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21356843Sdim * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22356843Sdim * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23356843Sdim * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24356843Sdim * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25356843Sdim * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26356843Sdim * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27356843Sdim * 28356843Sdim * $FreeBSD: head/sys/ia64/include/ucontext.h 115084 2003-05-16 21:26:42Z marcel $ 29356843Sdim */ 30356843Sdim 31356843Sdim#ifndef _MACHINE_UCONTEXT_H_ 32356843Sdim#define _MACHINE_UCONTEXT_H_ 33356843Sdim 34356843Sdim#include <machine/_regset.h> 35356843Sdim 36356843Sdimtypedef struct __mcontext { 37356843Sdim uint64_t mc_flags; 38356843Sdim#define IA64_MC_FLAGS_SCRATCH_VALID 1 39356843Sdim#define IA64_MC_FLAGS_HIGHFP_VALID 2 40356843Sdim uint64_t _reserved_; 41356843Sdim struct _special mc_special; 42356843Sdim struct _callee_saved mc_preserved; 43356843Sdim struct _callee_saved_fp mc_preserved_fp; 44356843Sdim struct _caller_saved mc_scratch; 45356843Sdim struct _caller_saved_fp mc_scratch_fp; 46356843Sdim struct _high_fp mc_high_fp; 47356843Sdim} mcontext_t; 48356843Sdim 49356843Sdim#endif /* !_MACHINE_UCONTEXT_H_ */ 50356843Sdim