unwind.h revision 85685
185685Sdfr/*- 285685Sdfr * Copyright (c) 2001 Doug Rabson 385685Sdfr * All rights reserved. 485685Sdfr * 585685Sdfr * Redistribution and use in source and binary forms, with or without 685685Sdfr * modification, are permitted provided that the following conditions 785685Sdfr * are met: 885685Sdfr * 1. Redistributions of source code must retain the above copyright 985685Sdfr * notice, this list of conditions and the following disclaimer. 1085685Sdfr * 2. Redistributions in binary form must reproduce the above copyright 1185685Sdfr * notice, this list of conditions and the following disclaimer in the 1285685Sdfr * documentation and/or other materials provided with the distribution. 1385685Sdfr * 1485685Sdfr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1585685Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1685685Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1785685Sdfr * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1885685Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1985685Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2085685Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2185685Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2285685Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2385685Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2485685Sdfr * SUCH DAMAGE. 2585685Sdfr * 2685685Sdfr * $FreeBSD: head/sys/ia64/include/unwind.h 85685 2001-10-29 12:04:23Z dfr $ 2785685Sdfr */ 2885685Sdfr 2985685Sdfrstruct ia64_unwind_table; 3085685Sdfr 3185685Sdfrstruct ia64_unwind_table *ia64_add_unwind_table(u_int64_t *base, 3285685Sdfr u_int64_t *start, 3385685Sdfr u_int64_t *end); 3485685Sdfrvoid ia64_free_unwind_table(struct ia64_unwind_table *ut); 3585685Sdfrstruct ia64_unwind_state *ia64_create_unwind_state(struct trapframe *framep); 3685685Sdfrvoid ia64_free_unwind_state(struct ia64_unwind_state *us); 3785685Sdfru_int64_t ia64_unwind_state_get_ip(struct ia64_unwind_state *us); 3885685Sdfru_int64_t ia64_unwind_state_get_sp(struct ia64_unwind_state *us); 3985685Sdfru_int64_t ia64_unwind_state_get_cfm(struct ia64_unwind_state *us); 4085685Sdfru_int64_t *ia64_unwind_state_get_bsp(struct ia64_unwind_state *us); 4185685Sdfrint ia64_unwind_state_previous_frame(struct ia64_unwind_state *us); 42