1d07b2f1peter/*-
29014a6epfg * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
39014a6epfg *
4d07b2f1peter * Copyright (c) 2005 Peter Wemm
5d07b2f1peter * All rights reserved.
6d07b2f1peter *
7d07b2f1peter * Redistribution and use in source and binary forms, with or without
8d07b2f1peter * modification, are permitted provided that the following conditions
9d07b2f1peter * are met:
10d07b2f1peter * 1. Redistributions of source code must retain the above copyright
11d07b2f1peter *    notice, this list of conditions and the following disclaimer.
12d07b2f1peter * 2. Redistributions in binary form must reproduce the above copyright
13d07b2f1peter *    notice, this list of conditions and the following disclaimer in the
14d07b2f1peter *    documentation and/or other materials provided with the distribution.
15d07b2f1peter *
16d07b2f1peter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17d07b2f1peter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18d07b2f1peter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19d07b2f1peter * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20d07b2f1peter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21d07b2f1peter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22d07b2f1peter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23d07b2f1peter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24d07b2f1peter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25d07b2f1peter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26d07b2f1peter * SUCH DAMAGE.
27d07b2f1peter */
28d07b2f1peter
29d07b2f1peter#include <sys/cdefs.h>
30d07b2f1peter__FBSDID("$FreeBSD$");
31d07b2f1peter
32d07b2f1peter#include <machine/sysarch.h>
33d07b2f1peter
34d07b2f1peterint
35d07b2f1peteri386_get_fsbase(void **addr)
36d07b2f1peter{
37d07b2f1peter
38d07b2f1peter	return (sysarch(I386_GET_FSBASE, addr));
39d07b2f1peter}
40