10b898a9eSAndrew Turner/*- 20b898a9eSAndrew Turner * Copyright (c) 2012 Oleksandr Tymoshenko 30b898a9eSAndrew Turner * Copyright (c) 2012 Andrew Turner 40b898a9eSAndrew Turner * All rights reserved. 50b898a9eSAndrew Turner * 60b898a9eSAndrew Turner * Redistribution and use in source and binary forms, with or without 70b898a9eSAndrew Turner * modification, are permitted provided that the following conditions 80b898a9eSAndrew Turner * are met: 90b898a9eSAndrew Turner * 1. Redistributions of source code must retain the above copyright 100b898a9eSAndrew Turner * notice, this list of conditions and the following disclaimer. 110b898a9eSAndrew Turner * 2. Redistributions in binary form must reproduce the above copyright 120b898a9eSAndrew Turner * notice, this list of conditions and the following disclaimer in the 130b898a9eSAndrew Turner * documentation and/or other materials provided with the distribution. 140b898a9eSAndrew Turner * 150b898a9eSAndrew Turner * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 160b898a9eSAndrew Turner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 170b898a9eSAndrew Turner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 180b898a9eSAndrew Turner * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 190b898a9eSAndrew Turner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 200b898a9eSAndrew Turner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 210b898a9eSAndrew Turner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 220b898a9eSAndrew Turner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 230b898a9eSAndrew Turner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 240b898a9eSAndrew Turner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 250b898a9eSAndrew Turner * SUCH DAMAGE. 260b898a9eSAndrew Turner */ 270b898a9eSAndrew Turner 280b898a9eSAndrew Turner#include <machine/asm.h> 290b898a9eSAndrew Turner#include <machine/sysarch.h> 300b898a9eSAndrew Turner 310b898a9eSAndrew TurnerENTRY(__aeabi_read_tp) 328e585021SOleksandr Tymoshenko mrc p15, 0, r0, c13, c0, 3 330b898a9eSAndrew Turner RET 34f2e71517SIan LeporeEND(__aeabi_read_tp) 350b898a9eSAndrew Turner 36*96cdb0abSKonstantin Belousov .section .note.GNU-stack,"",%progbits 37