Hi Geert,
Geert Uytterhoeven wrote:
m68k(nommu): Add missing syscalls
Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
---
Does this look OK? It fixes all but one of:
Yes, looks good to me.
I notice too that in asm-m68knommu/unistd.h it looks like we
need to change the __NR_pread and __NR_pwrite to be
__NR_pread64 and __NR_pwrite64. The syscalltable actually
calls them correctly, just those defines are wrong.
But anyway, I will take care of that :-)
Regards
Greg
CALL linux-m68k-2.6/scripts/checksyscalls.sh
<stdin>:101:2: warning: #warning syscall restart_syscall not implemented
<stdin>:1061:2: warning: #warning syscall sched_setaffinity not implemented
<stdin>:1065:2: warning: #warning syscall sched_getaffinity not implemented
<stdin>:1225:2: warning: #warning syscall kexec_load not implemented
<stdin>:1361:2: warning: #warning syscall getcpu not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
<stdin>:1369:2: warning: #warning syscall utimensat not implemented
<stdin>:1373:2: warning: #warning syscall signalfd not implemented
<stdin>:1377:2: warning: #warning syscall timerfd not implemented
<stdin>:1381:2: warning: #warning syscall eventfd not implemented
<stdin>:1385:2: warning: #warning syscall fallocate not implemented
Probably we should add __IGNORE_restart_syscall to
scripts/checksyscalls.sh?
arch/m68k/kernel/entry.S | 10 ++++++++++
arch/m68knommu/kernel/syscalltable.S | 10 ++++++++++
include/asm-m68k/unistd.h | 12 +++++++++++-
include/asm-m68knommu/unistd.h | 12 +++++++++++-
4 files changed, 42 insertions(+), 2 deletions(-)
--- a/arch/m68k/kernel/entry.S
+++ b/arch/m68k/kernel/entry.S
@@ -735,4 +735,14 @@ sys_call_table:
.long sys_tee
.long sys_vmsplice
.long sys_move_pages /* 310 */
+ .long sys_sched_setaffinity
+ .long sys_sched_getaffinity
+ .long sys_kexec_load
+ .long sys_getcpu
+ .long sys_epoll_pwait /* 315 */
+ .long sys_utimensat
+ .long sys_signalfd
+ .long sys_timerfd
+ .long sys_eventfd
+ .long sys_fallocate /* 320 */
--- a/arch/m68knommu/kernel/syscalltable.S
+++ b/arch/m68knommu/kernel/syscalltable.S
@@ -329,6 +329,16 @@ ENTRY(sys_call_table)
.long sys_tee
.long sys_vmsplice
.long sys_move_pages /* 310 */
+ .long sys_sched_setaffinity
+ .long sys_sched_getaffinity
+ .long sys_kexec_load
+ .long sys_getcpu
+ .long sys_epoll_pwait /* 315 */
+ .long sys_utimensat
+ .long sys_signalfd
+ .long sys_timerfd
+ .long sys_eventfd
+ .long sys_fallocate /* 320 */
.rept NR_syscalls-(.-sys_call_table)/4
.long sys_ni_syscall
--- a/include/asm-m68k/unistd.h
+++ b/include/asm-m68k/unistd.h
@@ -313,10 +313,20 @@
#define __NR_tee 308
#define __NR_vmsplice 309
#define __NR_move_pages 310
+#define __NR_sched_setaffinity 311
+#define __NR_sched_getaffinity 312
+#define __NR_kexec_load 313
+#define __NR_getcpu 314
+#define __NR_epoll_pwait 315
+#define __NR_utimensat 316
+#define __NR_signalfd 317
+#define __NR_timerfd 318
+#define __NR_eventfd 319
+#define __NR_fallocate 320
#ifdef __KERNEL__
-#define NR_syscalls 311
+#define NR_syscalls 321
#define __ARCH_WANT_IPC_PARSE_VERSION
#define __ARCH_WANT_OLD_READDIR
--- a/include/asm-m68knommu/unistd.h
+++ b/include/asm-m68knommu/unistd.h
@@ -314,10 +314,20 @@
#define __NR_tee 308
#define __NR_vmsplice 309
#define __NR_move_pages 310
+#define __NR_sched_setaffinity 311
+#define __NR_sched_getaffinity 312
+#define __NR_kexec_load 313
+#define __NR_getcpu 314
+#define __NR_epoll_pwait 315
+#define __NR_utimensat 316
+#define __NR_signalfd 317
+#define __NR_timerfd 318
+#define __NR_eventfd 319
+#define __NR_fallocate 320
#ifdef __KERNEL__
-#define NR_syscalls 311
+#define NR_syscalls 321
#define __ARCH_WANT_IPC_PARSE_VERSION
#define __ARCH_WANT_OLD_READDIR
_______________________________________________
uClinux-dev mailing list
uClinux-dev@xxxxxxxxxxx
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@xxxxxxxxxxx
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
--
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: gerg@xxxxxxxxxxxx
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
-
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html