Move __NR_shm* syscall numbers to x86-64 where they belong
authorJens Axboe <axboe@kernel.dk>
Sat, 27 Apr 2013 02:24:59 +0000 (20:24 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 27 Apr 2013 02:24:59 +0000 (20:24 -0600)
The definitions are only correct for 64-bit Linux, not for 32-bit.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
arch/arch-x86.h
arch/arch-x86_64.h

index 49e64dd3cfa74c39570f4aabb99fe511e5e4e855..385a9124ec5ee9ef416201ba6d730b6d3aafd7e1 100644 (file)
@@ -29,12 +29,6 @@ static inline void do_cpuid(unsigned int *eax, unsigned int *ebx,
 #define __NR_sys_vmsplice      316
 #endif
 
-#ifndef __NR_shmget
-#define __NR_shmget 29
-#define __NR_shmat 30
-#define __NR_shmctl 31
-#endif
-
 #define        FIO_HUGE_PAGE           4194304
 
 #define nop            __asm__ __volatile__("rep;nop": : :"memory")
index 8bdf01e84dd2a3558c3f2eee6a98f2d17176750c..d7ea12e0d0723d6e8c8d9d9671cc3ab151d5645b 100644 (file)
@@ -29,6 +29,13 @@ static inline void do_cpuid(unsigned int *eax, unsigned int *ebx,
 #define __NR_sys_vmsplice      278
 #endif
 
+#ifndef __NR_shmget
+#define __NR_shmget             29
+#define __NR_shmat              30
+#define __NR_shmctl             31
+#define __NR_shmdt              67
+#endif
+
 #define        FIO_HUGE_PAGE           2097152
 
 #define nop            __asm__ __volatile__("rep;nop": : :"memory")