fix ENOSYS from io_getevents()/NR_SYSCALLS
NR_SYSCALLS appears to be off by one, and so aio tests/etc. are failing with -ENOSYS. __NR_io_getevents is 272, so the bgeu,pn NR_SYSCALLS etc. checks mistakenly punt io_getevents() off to linux_sparc_ni_syscall(). The following patch gets the aio tests running.
-- wli
arch/sparc64/kernel/entry.S +1 -1
@@ -26,7 +26,7 @@ #define curptr g6 -#define NR_SYSCALLS 272 /* Each OS is different... */ +#define NR_SYSCALLS 273 /* Each OS is different... */ .text .align 32
Quoted 4 lines · On Thu, 18 Mar 2004 06:22:25 -0800 William Lee Irwin III <[email protected]>…
NR_SYSCALLSappears to be off by one, and so aio tests/etc. are failing with-ENOSYS.__NR_io_geteventsis 272, so the bgeu,pnNR_SYSCALLSetc. checks mistakenly puntio_getevents()off tolinux_sparc_ni_syscall(). The following patch gets the aio tests running.
sparc32 needed the same fix too, thanks Will.