Skip to contentSkip to conversation

fix ENOSYS from io_getevents()/NR_SYSCALLS

PATCH William Lee Irwin III 2 participants 2 messages Mar 18, 2004

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Quoted 4 lines · On Thu, 18 Mar 2004 06:22:25 -0800 William Lee Irwin III <[email protected]>…

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.

sparc32 needed the same fix too, thanks Will.