From 5d7e01f8f7af2900e089be28054adb56614a9d13 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Wed, 28 Aug 2002 16:21:09 +1000 Subject: [PATCH] PPC32: add the bits needed for AIO and sendfile64 support. This is extra syscall entries + KM_IRQ0/1. --- arch/ppc/kernel/misc.S | 6 ++++++ include/asm-ppc/kmap_types.h | 2 ++ include/asm-ppc/unistd.h | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/arch/ppc/kernel/misc.S b/arch/ppc/kernel/misc.S index ef0a88d42e02..77a847926ed8 100644 --- a/arch/ppc/kernel/misc.S +++ b/arch/ppc/kernel/misc.S @@ -1298,6 +1298,12 @@ _GLOBAL(sys_call_table) .long sys_sched_getaffinity .long sys_security .long sys_ni_syscall /* 225 - reserved for Tux */ + .long sys_sendfile64 + .long sys_io_setup + .long sys_io_destroy + .long sys_io_getevents + .long sys_io_submit /* 230 */ + .long sys_io_cancel .rept NR_syscalls-(.-sys_call_table)/4 .long sys_ni_syscall diff --git a/include/asm-ppc/kmap_types.h b/include/asm-ppc/kmap_types.h index bce7fd8c1ff2..e3745d9e38e3 100644 --- a/include/asm-ppc/kmap_types.h +++ b/include/asm-ppc/kmap_types.h @@ -15,6 +15,8 @@ enum km_type { KM_BIO_DST_IRQ, KM_PTE0, KM_PTE1, + KM_IRQ0, + KM_IRQ1, KM_TYPE_NR }; diff --git a/include/asm-ppc/unistd.h b/include/asm-ppc/unistd.h index 952e71ff452c..4f7e364fc0d6 100644 --- a/include/asm-ppc/unistd.h +++ b/include/asm-ppc/unistd.h @@ -233,6 +233,12 @@ #define __NR_sched_getaffinity 223 #define __NR_security 224 #define __NR_tuxcall 225 +#define __NR_sendfile64 226 +#define __NR_io_setup 227 +#define __NR_io_destroy 228 +#define __NR_io_getevents 229 +#define __NR_io_submit 230 +#define __NR_io_cancel 231 #define __NR(n) #n -- 2.39.5