_set_tp.c revision 150065
1133754Sdfr/*- 2133754Sdfr * Copyright (c) 2004 Doug Rabson 3133754Sdfr * All rights reserved. 4133754Sdfr * 5133754Sdfr * Redistribution and use in source and binary forms, with or without 6133754Sdfr * modification, are permitted provided that the following conditions 7133754Sdfr * are met: 8133754Sdfr * 1. Redistributions of source code must retain the above copyright 9133754Sdfr * notice, this list of conditions and the following disclaimer. 10133754Sdfr * 2. Redistributions in binary form must reproduce the above copyright 11133754Sdfr * notice, this list of conditions and the following disclaimer in the 12133754Sdfr * documentation and/or other materials provided with the distribution. 13133754Sdfr * 14133754Sdfr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15133754Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16133754Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17133754Sdfr * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18133754Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19133754Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20133754Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21133754Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22133754Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23133754Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24133754Sdfr * SUCH DAMAGE. 25133754Sdfr * 26133754Sdfr * $FreeBSD: head/lib/libc/i386/gen/_set_tp.c 150065 2005-09-12 19:52:42Z stefanf $ 27133754Sdfr */ 28133754Sdfr 29133754Sdfr#include <string.h> 30133754Sdfr#include <stdint.h> 31133754Sdfr#include <machine/sysarch.h> 32133754Sdfr 33150065Sstefanf#include "libc_private.h" 34150065Sstefanf 35133754Sdfrvoid 36133754Sdfr_set_tp(void *tp) 37133754Sdfr{ 38133754Sdfr 39147673Speter i386_set_gsbase(tp); 40133754Sdfr} 41