Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/arm/gen/__aeabi_read_tp.S
Show All 25 Lines | |||||
*/ | */ | ||||
#include <machine/asm.h> | #include <machine/asm.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include <machine/sysarch.h> | #include <machine/sysarch.h> | ||||
ENTRY(__aeabi_read_tp) | ENTRY(__aeabi_read_tp) | ||||
#ifdef ARM_TP_ADDRESS | |||||
ldr r0, .Larm_tp_address | |||||
ldr r0, [r0] | |||||
#else | |||||
mrc p15, 0, r0, c13, c0, 3 | mrc p15, 0, r0, c13, c0, 3 | ||||
#endif | |||||
RET | RET | ||||
END(__aeabi_read_tp) | END(__aeabi_read_tp) | ||||
#ifdef ARM_TP_ADDRESS | |||||
.Larm_tp_address: | |||||
.word ARM_TP_ADDRESS | |||||
#endif | |||||
.section .note.GNU-stack,"",%progbits | .section .note.GNU-stack,"",%progbits |