2009-07-27 20:23:08 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2004, Axel Dörfler, axeld@pinc-software.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _KERNEL_ARCH_ARM_CONFIG_H
|
|
|
|
#define _KERNEL_ARCH_ARM_CONFIG_H
|
|
|
|
|
|
|
|
|
|
|
|
#define FUNCTION_CALL_PARAMETER_ALIGNMENT_TYPE unsigned int
|
|
|
|
|
|
|
|
#define STACK_GROWS_DOWNWARDS
|
|
|
|
|
2013-09-18 07:03:18 +04:00
|
|
|
// If we're building on ARMv5 or older, all our atomics need to be syscalls... :(
|
|
|
|
#if _M_ARM <= 5
|
|
|
|
#define ATOMIC_FUNCS_ARE_SYSCALLS
|
|
|
|
#endif
|
2009-07-27 20:23:08 +04:00
|
|
|
|
2013-09-18 07:03:18 +04:00
|
|
|
// If we're building on ARMv6 or older, 64-bit atomics need to be syscalls...
|
|
|
|
#if _M_ARM < 7
|
|
|
|
#define ATOMIC64_FUNCS_ARE_SYSCALLS
|
|
|
|
#endif
|
2009-07-27 20:23:08 +04:00
|
|
|
|
2012-11-22 02:56:56 +04:00
|
|
|
#endif /* _KERNEL_ARCH_ARM_CONFIG_H */
|