Skip to contentSkip to conversation

support new syscalls

alpha Richard Henderson 1 participant 1 message May 29, 2007 Alpha port

lore
Share & tools
lore
#0 lore raw

Some of the new syscalls require supporting TIF_RESTORE_SIGMASK.

r~

arch/alpha/kernel/entry.S renamed from home/rth/work/linux/linux-2.6.22-rc2/arch/alpha/kernel/entry.S +3 -4
diff -ruNp /home/rth/work/linux/linux-2.6.22-rc2/arch/alpha/kernel/entry.S linux-2.6.22-rc2/arch/alpha/kernel/entry.S
@@ -391,11 +391,10 @@ $work_resched:
 	bne	$2, $work_resched
 
 $work_notifysig:
-	mov	$sp, $17
+	mov	$sp, $16
 	br	$1, do_switch_stack
-	mov	$5, $21
-	mov	$sp, $18
-	mov	$31, $16
+	mov	$sp, $17
+	mov	$5, $18
 	jsr	$26, do_notify_resume
 	bsr	$1, undo_switch_stack
 	br	restore_all
arch/alpha/kernel/signal.c renamed from home/rth/work/linux/linux-2.6.22-rc2/arch/alpha/kernel/signal.c +63 -47

221 lines not on this page · raw message

arch/alpha/kernel/systbls.S renamed from home/rth/work/linux/linux-2.6.22-rc2/arch/alpha/kernel/systbls.S +32 -0
diff -ruNp /home/rth/work/linux/linux-2.6.22-rc2/arch/alpha/kernel/systbls.S linux-2.6.22-rc2/arch/alpha/kernel/systbls.S
@@ -465,6 +465,38 @@ sys_call_table:
 	.quad sys_inotify_init
 	.quad sys_inotify_add_watch		/* 445 */
 	.quad sys_inotify_rm_watch
+	.quad sys_fdatasync
+	.quad sys_kexec_load
+	.quad sys_migrate_pages
+	.quad sys_openat			/* 450 */
+	.quad sys_mkdirat
+	.quad sys_mknodat
+	.quad sys_fchownat
+	.quad sys_futimesat
+	.quad sys_fstatat64			/* 455 */
+	.quad sys_unlinkat
+	.quad sys_renameat
+	.quad sys_linkat
+	.quad sys_symlinkat
+	.quad sys_readlinkat			/* 460 */
+	.quad sys_fchmodat
+	.quad sys_faccessat
+	.quad sys_pselect6
+	.quad sys_ppoll
+	.quad sys_unshare			/* 465 */
+	.quad sys_set_robust_list
+	.quad sys_get_robust_list
+	.quad sys_splice
+	.quad sys_sync_file_range
+	.quad sys_tee				/* 470 */
+	.quad sys_vmsplice
+	.quad sys_move_pages
+	.quad sys_getcpu
+	.quad sys_epoll_pwait
+	.quad sys_utimensat			/* 475 */
+	.quad sys_signalfd
+	.quad sys_timerfd
+	.quad sys_eventfd
 
 	.size sys_call_table, . - sys_call_table
 	.type sys_call_table, @object
include/asm-alpha/thread_info.h renamed from home/rth/work/linux/linux-2.6.22-rc2/include/asm-alpha/thread_info.h +2 -0
diff -ruNp /home/rth/work/linux/linux-2.6.22-rc2/include/asm-alpha/thread_info.h linux-2.6.22-rc2/include/asm-alpha/thread_info.h
@@ -76,12 +76,14 @@ register struct thread_info *__current_t
 #define TIF_UAC_NOFIX		7
 #define TIF_UAC_SIGBUS		8
 #define TIF_MEMDIE		9
+#define TIF_RESTORE_SIGMASK	10	/* restore signal mask in do_signal */
 
 #define _TIF_SYSCALL_TRACE	(1<<TIF_SYSCALL_TRACE)
 #define _TIF_NOTIFY_RESUME	(1<<TIF_NOTIFY_RESUME)
 #define _TIF_SIGPENDING		(1<<TIF_SIGPENDING)
 #define _TIF_NEED_RESCHED	(1<<TIF_NEED_RESCHED)
 #define _TIF_POLLING_NRFLAG	(1<<TIF_POLLING_NRFLAG)
+#define _TIF_RESTORE_SIGMASK	(1<<TIF_RESTORE_SIGMASK)
 
 /* Work to do on interrupt/exception return.  */
 #define _TIF_WORK_MASK		(_TIF_NOTIFY_RESUME	\
include/asm-alpha/unistd.h renamed from home/rth/work/linux/linux-2.6.22-rc2/include/asm-alpha/unistd.h +47 -1

63 lines not on this page · raw message