_set_tp.c revision 147673
1243640Sneel/*- 2243640Sneel * Copyright (c) 2004 Doug Rabson 3243640Sneel * All rights reserved. 4243640Sneel * 5243640Sneel * Redistribution and use in source and binary forms, with or without 6243640Sneel * modification, are permitted provided that the following conditions 7243640Sneel * are met: 8243640Sneel * 1. Redistributions of source code must retain the above copyright 9243640Sneel * notice, this list of conditions and the following disclaimer. 10243640Sneel * 2. Redistributions in binary form must reproduce the above copyright 11243640Sneel * notice, this list of conditions and the following disclaimer in the 12243640Sneel * documentation and/or other materials provided with the distribution. 13243640Sneel * 14243640Sneel * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15243640Sneel * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16243640Sneel * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17243640Sneel * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18243640Sneel * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19243640Sneel * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20243640Sneel * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21243640Sneel * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22243640Sneel * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23243640Sneel * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24243640Sneel * SUCH DAMAGE. 25243640Sneel * 26243640Sneel * $FreeBSD: head/lib/libc/i386/gen/_set_tp.c 147673 2005-06-29 23:15:36Z peter $ 27243640Sneel */ 28243640Sneel 29243640Sneel#include <string.h> 30243640Sneel#include <stdint.h> 31243640Sneel#include <machine/sysarch.h> 32268976Sjhb 33267399Sjhbvoid 34243640Sneel_set_tp(void *tp) 35243640Sneel{ 36243640Sneel 37243640Sneel i386_set_gsbase(tp); 38243640Sneel} 39243640Sneel