From 022851aba54d32831feaff13deb3d9943e130eee Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 28 Jan 2014 12:10:08 +0100 Subject: Add thread-local storage (TLS) support Tested and implemented on ARM, m68k, PowerPC and SPARC. Other architectures need more work. --- cpukit/score/cpu/sh/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/score/cpu/sh/cpu.c') diff --git a/cpukit/score/cpu/sh/cpu.c b/cpukit/score/cpu/sh/cpu.c index 57d6ffc6db..be3fedd04d 100644 --- a/cpukit/score/cpu/sh/cpu.c +++ b/cpukit/score/cpu/sh/cpu.c @@ -211,7 +211,8 @@ void _CPU_Context_Initialize( uint32_t _size, uint32_t _isr, void (*_entry_point)(void), - int _is_fp ) + int _is_fp, + void *_tls_base) { _the_context->r15 = (uint32_t *) ((uint32_t) (_stack_base) + (_size) ); #if defined(__sh1__) || defined(__sh2__) || defined(__SH2E__) -- cgit v1.2.3