vfs: check userland buffers before reading them.
[haiku.git] / headers / private / system / arch / arm / arch_config.h
blobbdc3218fc30fcf493c885bee4185c1a7d828a3f9
1 /*
2 * Copyright 2004, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _KERNEL_ARCH_ARM_CONFIG_H
6 #define _KERNEL_ARCH_ARM_CONFIG_H
8 #include "arch_arm_version.h"
10 #define FUNCTION_CALL_PARAMETER_ALIGNMENT_TYPE unsigned int
12 #define STACK_GROWS_DOWNWARDS
14 // If we're building on ARMv5 or older, all our atomics need to be syscalls... :(
15 #if __ARM_ARCH__ <= 5
16 #define ATOMIC_FUNCS_ARE_SYSCALLS
17 #endif
19 // If we're building on ARMv6 or older, 64-bit atomics need to be syscalls...
20 #if __ARM_ARCH__ <= 6
21 #define ATOMIC64_FUNCS_ARE_SYSCALLS
22 #endif
24 #endif /* _KERNEL_ARCH_ARM_CONFIG_H */