expose the kernel spinlock to exec
[AROS.git] / arch / arm-native / exec / exec_platform.h
blob7c86f9c83489fd44907f76427d2747adbd94f1f6
1 /*
2 Copyright © 2015, The AROS Development Team. All rights reserved.
3 $Id$
4 */
5 #ifndef __EXEC_PLATFORM_H
6 #define __EXEC_PLATFORM_H
8 // needed to determine if this is an smp build..
9 #include <aros/config.h>
11 #if defined(__AROSEXEC_SMP__)
12 #include <aros/types/spinlock_s.h>
14 extern void Kernel_40_KrnSpinInit(spinlock_t *, void *);
15 #define EXEC_SPINLOCK_INIT(a,b) Kernel_40_KrnSpinInit(a,b)
16 #endif
18 #include "tls.h"
20 struct Exec_PlatformData
22 /* No platform-specific data by default */
25 #define GET_THIS_TASK TLS_GET(ThisTask)
26 #define SET_THIS_TASK(x) TLS_SET(ThisTask,(x))
28 #endif /* __EXEC_PLATFORM_H */