public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* ColdFire and Thread-Local Storage
@ 2014-01-28 15:49 Sebastian Huber
  2014-01-28 19:15 ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Huber @ 2014-01-28 15:49 UTC (permalink / raw)
  To: gcc-help

Hi,

it seems GCC uses this ColdFire TLS ABI:

https://lists.debian.org/debian-68k/2007/11/msg00071.html

Here we have a function

void *__m68k_read_tp(void)

which must return the thread pointer in register a0.

I have to implement this function.  Is there a way to instruct GCC to return 
the value in register a0 instead of d0 or do I have to use assembler to 
implement this function?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-01-30 10:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-28 15:49 ColdFire and Thread-Local Storage Sebastian Huber
2014-01-28 19:15 ` Ian Lance Taylor
2014-01-29  7:51   ` Sebastian Huber
2014-01-29 19:50     ` Norbert Lange
2014-01-30 10:43       ` Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).