acall: move syscall nr limit up syslet
authorJens Axboe <jens.axboe@oracle.com>
Thu, 27 Nov 2008 15:03:16 +0000 (16:03 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 27 Nov 2008 15:03:16 +0000 (16:03 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
kernel/acall.c

index 4acc37857d07fc2973cd71f04f49974dcfa02ad3..ef698c0c40473f822d542591dfe2f7d6adb061a5 100644 (file)
@@ -140,7 +140,12 @@ static long call_syscall(struct acall_submission *sub)
                                                long);
        extern syscall_fn_t sys_call_table[];
 
-       if (sub->nr >= 290) /* hee, x86-64 */
+       /*
+        * Obviously this needs some real way of checking for a valid
+        * syscall number. Aditionally, we also want to do some syscalls
+        * always sync
+        */
+       if (sub->nr >= 295) /* hee, x86-64 */
                return -ENOSYS;
        else
                return sys_call_table[sub->nr](sub->args[0], sub->args[1],