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$ 27133754Sdfr */ 28133754Sdfr 29133754Sdfrvoid 30133754Sdfr_set_tp(void *tpval) 31133754Sdfr{ 32133754Sdfr 33161728Smarcel __asm __volatile("mov r13 = %0" :: "r"(tpval)); 34133754Sdfr} 35