1145036Speter/*- 2145036Speter * Copyright (c) 2005 Peter Wemm 3145036Speter * All rights reserved. 4145036Speter * 5145036Speter * Redistribution and use in source and binary forms, with or without 6145036Speter * modification, are permitted provided that the following conditions 7145036Speter * are met: 8145036Speter * 1. Redistributions of source code must retain the above copyright 9145036Speter * notice, this list of conditions and the following disclaimer. 10145036Speter * 2. Redistributions in binary form must reproduce the above copyright 11145036Speter * notice, this list of conditions and the following disclaimer in the 12145036Speter * documentation and/or other materials provided with the distribution. 13145036Speter * 14145036Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15145036Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16145036Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17145036Speter * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18145036Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19145036Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20145036Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21145036Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22145036Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23145036Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24145036Speter * SUCH DAMAGE. 25145036Speter */ 26145036Speter 27145036Speter#include <sys/cdefs.h> 28145036Speter__FBSDID("$FreeBSD$"); 29145036Speter 30145036Speter#include <machine/sysarch.h> 31145036Speter 32145036Speterint 33145036Speteri386_get_fsbase(void **addr) 34145036Speter{ 35145036Speter 36145036Speter return (sysarch(I386_GET_FSBASE, addr)); 37145036Speter} 38