1234337Sandrew/*- 2234337Sandrew * Copyright (c) 2012 Oleksandr Tymoshenko 3234337Sandrew * Copyright (c) 2012 Andrew Turner 4234337Sandrew * All rights reserved. 5234337Sandrew * 6234337Sandrew * Redistribution and use in source and binary forms, with or without 7234337Sandrew * modification, are permitted provided that the following conditions 8234337Sandrew * are met: 9234337Sandrew * 1. Redistributions of source code must retain the above copyright 10234337Sandrew * notice, this list of conditions and the following disclaimer. 11234337Sandrew * 2. Redistributions in binary form must reproduce the above copyright 12234337Sandrew * notice, this list of conditions and the following disclaimer in the 13234337Sandrew * documentation and/or other materials provided with the distribution. 14234337Sandrew * 15234337Sandrew * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16234337Sandrew * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17234337Sandrew * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18234337Sandrew * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19234337Sandrew * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20234337Sandrew * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21234337Sandrew * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22234337Sandrew * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23234337Sandrew * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24234337Sandrew * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25234337Sandrew * SUCH DAMAGE. 26234337Sandrew */ 27234337Sandrew 28234337Sandrew#include <machine/asm.h> 29234337Sandrew__FBSDID("$FreeBSD$"); 30234337Sandrew 31234337Sandrew#include <machine/sysarch.h> 32234337Sandrew 33234337SandrewENTRY(__aeabi_read_tp) 34234337Sandrew ldr r0, .Larm_tp_address 35234337Sandrew ldr r0, [r0] 36234337Sandrew RET 37234337Sandrew 38234337Sandrew.Larm_tp_address: 39234337Sandrew .word ARM_TP_ADDRESS 40234337Sandrew 41