[PARISC] Add new ioprio_{set,get} syscalls
authorJens Axboe <axboe@suse.de>
Sat, 22 Oct 2005 02:45:57 +0000 (22:45 -0400)
committerKyle McMartin <kyle@parisc-linux.org>
Sat, 22 Oct 2005 02:45:57 +0000 (22:45 -0400)
add syscall entries for ioprio_set/get as per Jens Axboe.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
arch/parisc/kernel/syscall_table.S
include/asm-parisc/unistd.h

index dcfa4d3d0e7d2502bb29e7c7a7f126e2067bd718..065ab809659d5f2457a248a6b1ae27a3bf92eacf 100644 (file)
        ENTRY_COMP(mbind)               /* 260 */
        ENTRY_COMP(get_mempolicy)
        ENTRY_COMP(set_mempolicy)
+       ENTRY_SAME(ni_syscall)  /* 263: reserved for vserver */
+       ENTRY_SAME(add_key)
+       ENTRY_SAME(request_key)         /* 265 */
+       ENTRY_SAME(keyctl)
+       ENTRY_SAME(ioprio_set)
+       ENTRY_SAME(ioprio_get)
        /* Nothing yet */
 
index 6a9f0cadff5890d57ae77d0405815b9a51476de5..e7a620c5c5e65a22791b559aa318426ecc209d6d 100644 (file)
 #define __NR_shmget             (__NR_Linux + 194)
 #define __NR_shmctl             (__NR_Linux + 195)
 
-#define __NR_getpmsg            (__NR_Linux + 196)      /* some people actually want streams */
-#define __NR_putpmsg            (__NR_Linux + 197)      /* some people actually want streams */
+#define __NR_getpmsg           (__NR_Linux + 196) /* Somebody *wants* streams? */
+#define __NR_putpmsg           (__NR_Linux + 197)
 
 #define __NR_lstat64            (__NR_Linux + 198)
 #define __NR_truncate64         (__NR_Linux + 199)
 #define __NR_mbind             (__NR_Linux + 260)
 #define __NR_get_mempolicy     (__NR_Linux + 261)
 #define __NR_set_mempolicy     (__NR_Linux + 262)
+#define __NR_vserver           (__NR_Linux + 263)
+#define __NR_add_key           (__NR_Linux + 264)
+#define __NR_request_key       (__NR_Linux + 265)
+#define __NR_keyctl            (__NR_Linux + 266)
+#define __NR_ioprio_set                (__NR_Linux + 267)
+#define __NR_ioprio_get                (__NR_Linux + 268)
 
-#define __NR_Linux_syscalls     263
+#define __NR_Linux_syscalls     269
 
 #define HPUX_GATEWAY_ADDR       0xC0000004
 #define LINUX_GATEWAY_ADDR      0x100
 #define K_INLINE_SYSCALL(name, nr, args...)    ({                      \
        long __sys_res;                                                 \
        {                                                               \
-               register unsigned long __res asm("r28");                \
+               register unsigned long __res __asm__("r28");            \
                K_LOAD_ARGS_##nr(args)                                  \
                /* FIXME: HACK stw/ldw r19 around syscall */            \
-               asm volatile(                                           \
+               __asm__ volatile(                                       \
                        K_STW_ASM_PIC                                   \
                        "       ble  0x100(%%sr2, %%r0)\n"              \
                        "       ldi %1, %%r20\n"                        \