From c525e02eb94d1c69a94f66fec0a672fdd4ac7467 Mon Sep 17 00:00:00 2001 From: schulz Date: Mon, 8 Jun 2015 21:09:51 +0000 Subject: [PATCH] fixed build of non-smp raspi build git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@50790 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/arm-native/kernel/platform_bcm2708.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm-native/kernel/platform_bcm2708.c b/arch/arm-native/kernel/platform_bcm2708.c index 20360a0c3f..dc2d9b8f04 100644 --- a/arch/arm-native/kernel/platform_bcm2708.c +++ b/arch/arm-native/kernel/platform_bcm2708.c @@ -99,7 +99,12 @@ static void bcm2708_init(APTR _kernelBase, APTR _sysBase) cpu_fiq_stack = (uint32_t *)AllocMem(1024*sizeof(uint32_t), MEMF_CLEAR); /* MEMF_PRIVATE */ ((uint32_t *)(trampoline_dst + trampoline_data_offset))[4] = (uint32_t)&cpu_fiq_stack[1024-sizeof(IPTR)]; + +#if defined(__AROSEXEC_SMP) __tls = (tls_t *)AllocMem(sizeof(tls_t) + sizeof(struct cpu_ipidata), MEMF_CLEAR); /* MEMF_PRIVATE */ +#else + __tls = (tls_t *)AllocMem(sizeof(tls_t), MEMF_CLEAR); /* MEMF_PRIVATE */ +#endif __tls->SysBase = _sysBase; __tls->KernelBase = _kernelBase; __tls->ThisTask = NULL; -- 2.11.4.GIT