File:  [DVB] / dietlibc / arm / arm_set_tls.S
Revision 1.1: download - view: text, annotated - select for diffs
Sat Apr 19 15:07:32 2014 UTC (10 years, 1 month ago) by leitner
Branches: MAIN
CVS tags: HEAD
Massive ARM changes from Enrico Scholz

#include "syscalls.h"
#include "arm-features.h"

#ifdef __ARM_EABI__

@ Calling convention:
@   r0 ... thread data
@ Returns:
@   r0 ... low-level error code
FUNC_START	__arm_set_tls
	mov	ip, r7
	ldr	r7, =__ARM_NR_set_tls
	swi	0
	mov	r7, ip

	@ we do not have much options here to handle errors because
	@ errno might not be available yet. Return error code as-is
	@ and let it handle by the caller

	RET
FUNC_END	__arm_set_tls

#else

#warning "setup-tls only implemented for ARM_EABI!"

#endif

LinuxTV legacy CVS <linuxtv.org/cvs>