diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-11-09 23:53:29 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-11-10 08:41:12 +0000 |
commit | cc20d42986d5807cbe4f5c7c8e3dab2e59ea0db3 (patch) | |
tree | aa71962250e2548a5079b5556436d924e14292fe /arch/arm/include/asm/unistd.h | |
parent | bfd2e29f04e5f048ea62677811d1244badd6661e (diff) | |
download | kernel_samsung_smdk4412-cc20d42986d5807cbe4f5c7c8e3dab2e59ea0db3.zip kernel_samsung_smdk4412-cc20d42986d5807cbe4f5c7c8e3dab2e59ea0db3.tar.gz kernel_samsung_smdk4412-cc20d42986d5807cbe4f5c7c8e3dab2e59ea0db3.tar.bz2 |
ARM: Use a definition for the userspace cmpxchg emulation syscall
Use a definition for the cmpxchg SWI instead of hard-coding the number.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Nicolas Pitre <nico@fluxnic.net>
Diffstat (limited to 'arch/arm/include/asm/unistd.h')
-rw-r--r-- | arch/arm/include/asm/unistd.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index 7020217..4e506d0 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h @@ -403,6 +403,15 @@ #define __ARM_NR_set_tls (__ARM_NR_BASE+5) /* + * *NOTE*: This is a ghost syscall private to the kernel. Only the + * __kuser_cmpxchg code in entry-armv.S should be aware of its + * existence. Don't ever use this from user code. + */ +#ifdef __KERNEL__ +#define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0) +#endif + +/* * The following syscalls are obsolete and no longer available for EABI. */ #if defined(__ARM_EABI__) && !defined(__KERNEL__) |