1178580Simp/*- 2178580Simp * Copyright (c) 2004 Olivier Houchard 3178580Simp * All rights reserved. 4178580Simp * 5178580Simp * Redistribution and use in source and binary forms, with or without 6178580Simp * modification, are permitted provided that the following conditions 7178580Simp * are met: 8178580Simp * 1. Redistributions of source code must retain the above copyright 9178580Simp * notice, this list of conditions and the following disclaimer. 10178580Simp * 2. Redistributions in binary form must reproduce the above copyright 11178580Simp * notice, this list of conditions and the following disclaimer in the 12178580Simp * documentation and/or other materials provided with the distribution. 13178580Simp * 14178580Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15178580Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16178580Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17178580Simp * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18178580Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19178580Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20178580Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21178580Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22178580Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23178580Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24178580Simp * SUCH DAMAGE. 25178580Simp */ 26178580Simp 27178580Simp#include <sys/cdefs.h> 28178580Simp__FBSDID("$FreeBSD$"); 29178580Simp 30178580Simp#include <sys/param.h> 31178580Simp#include <sys/signal.h> 32178580Simp#include <sys/ucontext.h> 33178580Simp 34178580Simp#include <machine/frame.h> 35178580Simp#include <machine/sigframe.h> 36178580Simp 37178580Simp#include <errno.h> 38178580Simp#include <stdarg.h> 39178580Simp#include <stdlib.h> 40178580Simp#include <unistd.h> 41178580Simp#include <strings.h> 42178580Simp#include <signal.h> 43178580Simp 44178580Simp__weak_reference(__signalcontext, signalcontext); 45178580Simp 46178580Simpextern void _ctx_start(void); 47178580Simp 48178580Simpint 49178580Simp__signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) 50178580Simp{ 51178580Simp /* XXXMIPS: Implement me */ 52178580Simp return (0); 53178580Simp} 54