1*9b6bd2d9Srmind /* $NetBSD: userret.h,v 1.13 2011/02/08 20:20:19 rmind Exp $ */
2e292dc96Sthorpej
3e292dc96Sthorpej /*
4*9b6bd2d9Srmind * Copyright (c) 1988 University of Utah.
5e292dc96Sthorpej * Copyright (c) 1992, 1993
6e292dc96Sthorpej * The Regents of the University of California. All rights reserved.
7e292dc96Sthorpej *
8e292dc96Sthorpej * This code is derived from software contributed to Berkeley by
9e292dc96Sthorpej * the Systems Programming Group of the University of Utah Computer
10e292dc96Sthorpej * Science Department and Ralph Campbell.
11e292dc96Sthorpej *
12e292dc96Sthorpej * Redistribution and use in source and binary forms, with or without
13e292dc96Sthorpej * modification, are permitted provided that the following conditions
14e292dc96Sthorpej * are met:
15e292dc96Sthorpej * 1. Redistributions of source code must retain the above copyright
16e292dc96Sthorpej * notice, this list of conditions and the following disclaimer.
17e292dc96Sthorpej * 2. Redistributions in binary form must reproduce the above copyright
18e292dc96Sthorpej * notice, this list of conditions and the following disclaimer in the
19e292dc96Sthorpej * documentation and/or other materials provided with the distribution.
20aad01611Sagc * 3. Neither the name of the University nor the names of its contributors
21aad01611Sagc * may be used to endorse or promote products derived from this software
22aad01611Sagc * without specific prior written permission.
23aad01611Sagc *
24aad01611Sagc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25aad01611Sagc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26aad01611Sagc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27aad01611Sagc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28aad01611Sagc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29aad01611Sagc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30aad01611Sagc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31aad01611Sagc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32aad01611Sagc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33aad01611Sagc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34aad01611Sagc * SUCH DAMAGE.
35aad01611Sagc *
36aad01611Sagc * from: Utah Hdr: trap.c 1.32 91/04/06
37aad01611Sagc *
38aad01611Sagc * @(#)trap.c 8.5 (Berkeley) 1/11/94
39aad01611Sagc */
40e292dc96Sthorpej
41e292dc96Sthorpej #ifndef _MIPS_USERRET_H_
42e292dc96Sthorpej #define _MIPS_USERRET_H_
43e292dc96Sthorpej
44ef56cc40Scl #include <sys/userret.h>
45ef56cc40Scl
46fbae48b9Sperry static __inline void
userret(struct lwp * l)47a50e3bc1Sthorpej userret(struct lwp *l)
48e292dc96Sthorpej {
49e292dc96Sthorpej
50ef56cc40Scl /* Invoke MI userret code */
51ef56cc40Scl mi_userret(l);
52e292dc96Sthorpej }
53e292dc96Sthorpej
54e292dc96Sthorpej #endif /* _MIPS_USERRET_H_ */
55