CVS commit: src/sys/compat/linux/arch/alpha

2020-10-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct  6 13:38:50 UTC 2020

Modified Files:
src/sys/compat/linux/arch/alpha: linux_osf1.c

Log Message:
make MAXTSIZ optional


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/alpha/linux_osf1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/linux_osf1.c
diff -u src/sys/compat/linux/arch/alpha/linux_osf1.c:1.3 src/sys/compat/linux/arch/alpha/linux_osf1.c:1.4
--- src/sys/compat/linux/arch/alpha/linux_osf1.c:1.3	Fri Apr  5 23:06:28 2019
+++ src/sys/compat/linux/arch/alpha/linux_osf1.c	Tue Oct  6 09:38:49 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_osf1.c,v 1.3 2019/04/06 03:06:28 thorpej Exp $	*/
+/*	$NetBSD: linux_osf1.c,v 1.4 2020/10/06 13:38:49 christos Exp $	*/
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux_osf1.c,v 1.3 2019/04/06 03:06:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_osf1.c,v 1.4 2020/10/06 13:38:49 christos Exp $");
 
 #include 
 #include 
@@ -314,8 +314,10 @@ linux_sys_osf1_set_program_attributes(st
 
 	if (dsize > p->p_rlimit[RLIMIT_DATA].rlim_cur)
 		return (ENOMEM);
+#ifdef MAXTSIZ
 	if (tsize > MAXTSIZ)
 		return (ENOMEM);
+#endif
 
 	/* XXXSMP unlocked */
 	p->p_vmspace->vm_taddr = SCARG(uap, taddr);



CVS commit: src/sys/compat/linux/arch/alpha

2020-09-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Sep  3 14:26:31 UTC 2020

Modified Files:
src/sys/compat/linux/arch/alpha: linux_machdep.c

Log Message:
The conversion of FPU tracking to PCU rendered the fpcurlwp variable
unmaintained, which broke FP status info in the COMPAT_LINUX sigcontext.
Use the new API, which will at least be closer to correct.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/compat/linux/arch/alpha/linux_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/linux_machdep.c
diff -u src/sys/compat/linux/arch/alpha/linux_machdep.c:1.50 src/sys/compat/linux/arch/alpha/linux_machdep.c:1.51
--- src/sys/compat/linux/arch/alpha/linux_machdep.c:1.50	Sun Nov  9 17:48:07 2014
+++ src/sys/compat/linux/arch/alpha/linux_machdep.c	Thu Sep  3 14:26:31 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_machdep.c,v 1.50 2014/11/09 17:48:07 maxv Exp $	*/
+/*	$NetBSD: linux_machdep.c,v 1.51 2020/09/03 14:26:31 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.50 2014/11/09 17:48:07 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.51 2020/09/03 14:26:31 thorpej Exp $");
 
 #include 
 #include 
@@ -243,14 +243,11 @@ void setup_linux_sigframe(struct trapfra
 	frametoreg(tf, (struct reg *)sigframe.sf_sc.sc_regs);
 	sigframe.sf_sc.sc_regs[R_SP] = alpha_pal_rdusp();
 
-	if (l == fpcurlwp) {
+	if (fpu_valid_p(l)) {
 		struct pcb *pcb = lwp_getpcb(l);
 
-		alpha_pal_wrfen(1);
-		savefpstate(>pcb_fp);
-		alpha_pal_wrfen(0);
+		fpu_save(l);
 		sigframe.sf_sc.sc_fpcr = pcb->pcb_fp.fpr_cr;
-		fpcurlwp = NULL;
 	}
 	/* XXX ownedfp ? etc...? */
 
@@ -394,9 +391,6 @@ linux_restore_sigcontext(struct lwp *l, 
 	regtoframe((struct reg *)context.sc_regs, l->l_md.md_tf);
 	alpha_pal_wrusp(context.sc_regs[R_SP]);
 
-	if (l == fpcurlwp)
-	fpcurlwp = NULL;
-
 	/* Restore fp regs and fpr_cr */
 	pcb = lwp_getpcb(l);
 	memcpy(>pcb_fp, (struct fpreg *)context.sc_fpregs,



CVS commit: src/sys/compat/linux/arch/alpha

2019-03-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Mar 26 02:05:28 UTC 2019

Modified Files:
src/sys/compat/linux/arch/alpha: linux_osf1.c

Log Message:
make this compile again.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/compat/linux/arch/alpha/linux_osf1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/linux_osf1.c
diff -u src/sys/compat/linux/arch/alpha/linux_osf1.c:1.1 src/sys/compat/linux/arch/alpha/linux_osf1.c:1.2
--- src/sys/compat/linux/arch/alpha/linux_osf1.c:1.1	Sun Mar 24 12:24:19 2019
+++ src/sys/compat/linux/arch/alpha/linux_osf1.c	Mon Mar 25 22:05:28 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_osf1.c,v 1.1 2019/03/24 16:24:19 maxv Exp $	*/
+/*	$NetBSD: linux_osf1.c,v 1.2 2019/03/26 02:05:28 christos Exp $	*/
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux_osf1.c,v 1.1 2019/03/24 16:24:19 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_osf1.c,v 1.2 2019/03/26 02:05:28 christos Exp $");
 
 #include 
 #include 
@@ -419,7 +419,7 @@ linux_sys_osf1_gettimeofday(struct lwp *
 	memset(, 0, sizeof otv);
 	otv.tv_sec = tv.tv_sec;
 	otv.tv_usec = tv.tv_usec;
-	error = copyout(, SCARG(uap, tp), sizeof otv);
+	error = copyout(, SCARG(uap, tv), sizeof otv);
 
 	if (error == 0 && SCARG(uap, tzp) != NULL) {
 		memset(, 0, sizeof otz);



CVS commit: src/sys/compat/linux/arch/alpha

2019-03-24 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Mar 24 16:39:47 UTC 2019

Modified Files:
src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.108 src/sys/compat/linux/arch/alpha/linux_syscall.h \
src/sys/compat/linux/arch/alpha/linux_sysent.c
cvs rdiff -u -r1.106 -r1.107 \
src/sys/compat/linux/arch/alpha/linux_syscallargs.h
cvs rdiff -u -r1.108 -r1.109 src/sys/compat/linux/arch/alpha/linux_syscalls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/linux_syscall.h
diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.107 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.108
--- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.107	Fri Aug 10 21:47:14 2018
+++ src/sys/compat/linux/arch/alpha/linux_syscall.h	Sun Mar 24 16:39:46 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.h,v 1.107 2018/08/10 21:47:14 pgoyette Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.108 2019/03/24 16:39:46 maxv Exp $ */
 
 /*
  * System call numbers.
@@ -30,6 +30,9 @@
 /* syscall: "close" ret: "int" args: "int" */
 #define	LINUX_SYS_close	6
 
+/* syscall: "osf1_wait4" ret: "int" args: "int" "int *" "int" "struct osf1_rusage *" */
+#define	LINUX_SYS_osf1_wait4	7
+
 /* syscall: "creat" ret: "int" args: "const char *" "linux_umode_t" */
 #define	LINUX_SYS_creat	8
 
@@ -63,6 +66,9 @@
 /* syscall: "getpid_with_ppid" ret: "pid_t" args: */
 #define	LINUX_SYS_getpid_with_ppid	20
 
+/* syscall: "osf1_mount" ret: "int" args: "int" "const char *" "int" "void *" */
+#define	LINUX_SYS_osf1_mount	21
+
 /* syscall: "setuid" ret: "int" args: "uid_t" */
 #define	LINUX_SYS_setuid	23
 
@@ -90,6 +96,9 @@
 /* syscall: "pipe" ret: "int" args: */
 #define	LINUX_SYS_pipe	42
 
+/* syscall: "osf1_set_program_attributes" ret: "int" args: "void *" "unsigned long" "void *" "unsigned long" */
+#define	LINUX_SYS_osf1_set_program_attributes	43
+
 /* syscall: "open" ret: "int" args: "const char *" "int" "linux_umode_t" */
 #define	LINUX_SYS_open	45
 
@@ -156,6 +165,9 @@
 /* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */
 #define	LINUX_SYS_setgroups	80
 
+/* syscall: "osf1_setitimer" ret: "int" args: "int" "struct osf1_itimerval *" "struct osf1_itimerval *" */
+#define	LINUX_SYS_osf1_setitimer	83
+
 /* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
 #define	LINUX_SYS_gethostname	87
 
@@ -171,6 +183,9 @@
 /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
 #define	LINUX_SYS_fcntl	92
 
+/* syscall: "osf1_select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct osf1_timeval *" */
+#define	LINUX_SYS_osf1_select	93
+
 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
 #define	LINUX_SYS_poll	94
 
@@ -222,6 +237,12 @@
 /* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct linux_msghdr *" "int" */
 #define	LINUX_SYS_sendmsg	114
 
+/* syscall: "osf1_gettimeofday" ret: "int" args: "struct osf1_timeval *" "struct osf1_timezone *" */
+#define	LINUX_SYS_osf1_gettimeofday	116
+
+/* syscall: "osf1_getrusage" ret: "int" args: "int" "struct osf1_rusage *" */
+#define	LINUX_SYS_osf1_getrusage	117
+
 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
 #define	LINUX_SYS_getsockopt	118
 
@@ -231,6 +252,9 @@
 /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
 #define	LINUX_SYS_writev	121
 
+/* syscall: "osf1_settimeofday" ret: "int" args: "struct osf1_timeval *" "struct osf1_timezone *" */
+#define	LINUX_SYS_osf1_settimeofday	122
+
 /* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */
 #define	LINUX_SYS___posix_fchown	123
 
@@ -276,6 +300,9 @@
 /* syscall: "rmdir" ret: "int" args: "const char *" */
 #define	LINUX_SYS_rmdir	137
 
+/* syscall: "osf1_utimes" ret: "int" args: "const char *" "const struct osf1_timeval *" */
+#define	LINUX_SYS_osf1_utimes	138
+
 /* syscall: "getpeername" ret: "int" args: "int" "void *" "int *" */
 #define	LINUX_SYS_getpeername	141
 
@@ -297,6 +324,12 @@
 /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
 #define	LINUX_SYS_getdirentries	159
 
+/* syscall: "osf1_statfs" ret: "int" args: "const char *" "struct osf1_statfs *" "int" */
+#define	LINUX_SYS_osf1_statfs	160
+
+/* syscall: "osf1_fstatfs" ret: "int" args: "int" "struct osf1_statfs *" "int" */
+#define	LINUX_SYS_osf1_fstatfs	161
+
 /* syscall: "getdomainname" ret: "int" args: "char *" "int" */
 #define	LINUX_SYS_getdomainname	165
 
@@ -363,6 +396,18 @@
 /* syscall: "getsid" ret: "pid_t" args: "pid_t" */
 #define	LINUX_SYS_getsid	234
 
+/* syscall: "osf1_sysinfo" ret: "int" args: "int" "char *" "long" */
+#define	LINUX_SYS_osf1_sysinfo	241
+
+/* syscall: "osf1_usleep_thread" ret: "int" args: "struct osf1_timeval *" "struct 

CVS commit: src/sys/compat/linux/arch/alpha

2017-02-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Feb  3 16:17:17 UTC 2017

Modified Files:
src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/sys/compat/linux/arch/alpha/linux_syscall.h \
src/sys/compat/linux/arch/alpha/linux_sysent.c
cvs rdiff -u -r1.103 -r1.104 \
src/sys/compat/linux/arch/alpha/linux_syscallargs.h
cvs rdiff -u -r1.105 -r1.106 src/sys/compat/linux/arch/alpha/linux_syscalls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/linux_syscall.h
diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.104 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.105
--- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.104	Fri Feb  3 01:07:29 2017
+++ src/sys/compat/linux/arch/alpha/linux_syscall.h	Fri Feb  3 11:17:17 2017
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.104 2017/02/03 06:07:29 martin Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.105 2017/02/03 16:17:17 christos Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp
+ * created from	NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -654,6 +654,9 @@
 /* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */
 #define	LINUX_SYS_utimensat	475
 
+/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */
+#define	LINUX_SYS_recvmmsg	479
+
 /* syscall: "dup3" ret: "int" args: "int" "int" "int" */
 #define	LINUX_SYS_dup3	487
 
@@ -663,6 +666,9 @@
 /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */
 #define	LINUX_SYS_accept4	502
 
-#define	LINUX_SYS_MAXSYSCALL	503
+/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */
+#define	LINUX_SYS_sendmmsg	503
+
+#define	LINUX_SYS_MAXSYSCALL	511
 #define	LINUX_SYS_NSYSENT	512
 #endif /* _LINUX_SYS_SYSCALL_H_ */
Index: src/sys/compat/linux/arch/alpha/linux_sysent.c
diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.104 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.105
--- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.104	Fri Feb  3 01:07:29 2017
+++ src/sys/compat/linux/arch/alpha/linux_sysent.c	Fri Feb  3 11:17:17 2017
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.104 2017/02/03 06:07:29 martin Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.105 2017/02/03 16:17:17 christos Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp
+ * created from	NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.104 2017/02/03 06:07:29 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.105 2017/02/03 16:17:17 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -1897,8 +1897,10 @@ struct sysent linux_sysent[] = {
 		.sy_call = linux_sys_nosys,
 	},		/* 478 = filler */
 	{
-		.sy_call = linux_sys_nosys,
-	},		/* 479 = filler */
+		ns(struct linux_sys_recvmmsg_args),
+		.sy_flags = SYCALL_ARG_PTR,
+		.sy_call = (sy_call_t *)linux_sys_recvmmsg
+	},		/* 479 = recvmmsg */
 	{
 		.sy_call = linux_sys_nosys,
 	},		/* 480 = filler */
@@ -1974,8 +1976,10 @@ struct sysent linux_sysent[] = {
 		.sy_call = (sy_call_t *)linux_sys_accept4
 	},		/* 502 = accept4 */
 	{
-		.sy_call = linux_sys_nosys,
-	},		/* 503 = filler */
+		ns(struct linux_sys_sendmmsg_args),
+		.sy_flags = SYCALL_ARG_PTR,
+		.sy_call = (sy_call_t *)linux_sys_sendmmsg
+	},		/* 503 = sendmmsg */
 	{
 		.sy_call = linux_sys_nosys,
 	},		/* 504 = filler */

Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h
diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.103 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.104
--- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.103	Fri Feb  3 01:07:29 2017
+++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h	Fri Feb  3 11:17:17 2017
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.103 2017/02/03 06:07:29 martin Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.104 2017/02/03 16:17:17 christos Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp
+ * created from	NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -1114,6 +1114,15 @@ struct linux_sys_utimensat_args {
 };
 check_syscall_args(linux_sys_utimensat)
 

CVS commit: src/sys/compat/linux/arch/alpha

2017-02-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Feb  3 16:17:08 UTC 2017

Modified Files:
src/sys/compat/linux/arch/alpha: syscalls.master

Log Message:
add send/recv mmsg and comment on the unimpl ones.


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/sys/compat/linux/arch/alpha/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/syscalls.master
diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.93 src/sys/compat/linux/arch/alpha/syscalls.master:1.94
--- src/sys/compat/linux/arch/alpha/syscalls.master:1.93	Fri Feb  3 01:06:08 2017
+++ src/sys/compat/linux/arch/alpha/syscalls.master	Fri Feb  3 11:17:08 2017
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp $
+	$NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp $
 ;
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -756,7 +756,9 @@
 476	UNIMPL		signalfd
 477	UNIMPL		timerfd
 478	UNIMPL		eventfd
-479	UNIMPL		recvmmsg
+479	STD		{ int|linux_sys||recvmmsg(int s, \
+			struct linux_mmsghdr *msgvec, unsigned int vlen, \
+			unsigned int flags, struct timespec *timeout); }
 480	UNIMPL		fallocate
 481	UNIMPL		timerfd_create
 482	UNIMPL		timerfd_settime
@@ -771,15 +773,24 @@
 491	UNIMPL		pwritev
 492	UNIMPL		rt_tgsigqueueinfo
 493	UNIMPL		perf_counter_open
-494	UNIMPL
-495	UNIMPL
-496	UNIMPL
-497	UNIMPL
-498	UNIMPL
-499	UNIMPL
-500	UNIMPL
-501	UNIMPL
+494	UNIMPL		fanotify_init
+495	UNIMPL		fanotify_mark
+496	UNIMPL		prlimit64
+497	UNIMPL		name_to_handle_at
+498	UNIMPL		open_by_handle_at
+499	UNIMPL		clock_adjtime
+500	UNIMPL		syncfs
+501	UNIMPL		setns
 502	STD		{ int|linux_sys||accept4(int s, \
 			struct osockaddr *name, \
 			int *anamelen, int flags); }
-
+503	STD		{ int|linux_sys||sendmmsg(int s, \
+			struct linux_mmsghdr *msgvec, unsigned int vlen, \
+			unsigned int flags); }
+504	UNIMPL		process_vm_readv
+505	UNIMPL		process_vm_writev
+506	UNIMPL		kcmp
+507	UNIMPL		finit_module
+508	UNIMPL		sched_setattr
+509	UNIMPL		sched_getattr
+510	UNIMPL		renameat2



CVS commit: src/sys/compat/linux/arch/alpha

2014-05-23 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri May 23 12:30:12 UTC 2014

Modified Files:
src/sys/compat/linux/arch/alpha: linux_socket.h

Log Message:
Add missing specific LINUX_SOCK_NONBLOCK value for alpha.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/compat/linux/arch/alpha/linux_socket.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/linux_socket.h
diff -u src/sys/compat/linux/arch/alpha/linux_socket.h:1.5 src/sys/compat/linux/arch/alpha/linux_socket.h:1.6
--- src/sys/compat/linux/arch/alpha/linux_socket.h:1.5	Sat Jan 25 13:49:27 2014
+++ src/sys/compat/linux/arch/alpha/linux_socket.h	Fri May 23 12:30:12 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_socket.h,v 1.5 2014/01/25 13:49:27 njoly Exp $	*/
+/*	$NetBSD: linux_socket.h,v 1.6 2014/05/23 12:30:12 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -89,4 +89,10 @@
 #define LINUX_SO_PEEK_OFF	42
 #define LINUX_SO_NOFCS		43
 
+/*
+ * Flags for socket().
+ * These are provided in the type parameter.
+ */
+#define LINUX_SOCK_NONBLOCK	0x4000
+
 #endif /* !_ALPHA_LINUX_SOCKET_H */



CVS commit: src/sys/compat/linux/arch/alpha

2014-01-13 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Jan 13 10:33:23 UTC 2014

Modified Files:
src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c

Log Message:
Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/compat/linux/arch/alpha/linux_syscall.h \
src/sys/compat/linux/arch/alpha/linux_sysent.c
cvs rdiff -u -r1.87 -r1.88 \
src/sys/compat/linux/arch/alpha/linux_syscallargs.h
cvs rdiff -u -r1.89 -r1.90 src/sys/compat/linux/arch/alpha/linux_syscalls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/linux_syscall.h
diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.88 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.89
--- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.88	Fri Dec 27 14:17:32 2013
+++ src/sys/compat/linux/arch/alpha/linux_syscall.h	Mon Jan 13 10:33:23 2014
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.88 2013/12/27 14:17:32 njoly Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.89 2014/01/13 10:33:23 njoly Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -492,7 +492,7 @@
 /* syscall: gettimeofday ret: int args: struct timeval50 * struct timezone * */
 #define	LINUX_SYS_gettimeofday	359
 
-/* syscall: settimeofday ret: int args: const struct timeval50 * const struct timezone * */
+/* syscall: settimeofday ret: int args: struct timeval50 * struct timezone * */
 #define	LINUX_SYS_settimeofday	360
 
 /* syscall: getitimer ret: int args: int struct itimerval50 * */
Index: src/sys/compat/linux/arch/alpha/linux_sysent.c
diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.88 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.89
--- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.88	Fri Dec 27 14:17:32 2013
+++ src/sys/compat/linux/arch/alpha/linux_sysent.c	Mon Jan 13 10:33:23 2014
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.88 2013/12/27 14:17:32 njoly Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.89 2014/01/13 10:33:23 njoly Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.88 2013/12/27 14:17:32 njoly Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.89 2014/01/13 10:33:23 njoly Exp $);
 
 #if defined(_KERNEL_OPT)
 #include opt_sysv.h
@@ -788,10 +788,10 @@ struct sysent linux_sysent[] = {
 	(sy_call_t *)linux_sys_rt_sigsuspend },/* 357 = rt_sigsuspend */
 	{ ns(struct linux_sys_select_args), SYCALL_ARG_PTR,
 	(sy_call_t *)linux_sys_select },	/* 358 = select */
-	{ ns(struct compat_50_sys_gettimeofday_args), SYCALL_ARG_PTR,
-	(sy_call_t *)compat_50_sys_gettimeofday },/* 359 = gettimeofday */
-	{ ns(struct compat_50_sys_settimeofday_args), SYCALL_ARG_PTR,
-	(sy_call_t *)compat_50_sys_settimeofday },/* 360 = settimeofday */
+	{ ns(struct linux_sys_gettimeofday_args), SYCALL_ARG_PTR,
+	(sy_call_t *)linux_sys_gettimeofday },/* 359 = gettimeofday */
+	{ ns(struct linux_sys_settimeofday_args), SYCALL_ARG_PTR,
+	(sy_call_t *)linux_sys_settimeofday },/* 360 = settimeofday */
 	{ ns(struct compat_50_sys_getitimer_args), SYCALL_ARG_PTR,
 	(sy_call_t *)compat_50_sys_getitimer },/* 361 = getitimer */
 	{ ns(struct compat_50_sys_setitimer_args), SYCALL_ARG_PTR,

Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h
diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.87 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.88
--- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.87	Fri Dec 27 14:17:32 2013
+++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h	Mon Jan 13 10:33:23 2014
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.87 2013/12/27 14:17:32 njoly Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.88 2014/01/13 10:33:23 njoly Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -776,9 +776,17 @@ struct linux_sys_select_args {
 };
 check_syscall_args(linux_sys_select)
 
-struct compat_50_sys_gettimeofday_args;
+struct linux_sys_gettimeofday_args {
+	syscallarg(struct timeval50 *) tp;
+	syscallarg(struct timezone *) tzp;
+};
+check_syscall_args(linux_sys_gettimeofday)
 
-struct compat_50_sys_settimeofday_args;
+struct 

CVS commit: src/sys/compat/linux/arch/alpha

2013-12-27 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Dec 27 14:17:32 UTC 2013

Modified Files:
src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c

Log Message:
Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/compat/linux/arch/alpha/linux_syscall.h \
src/sys/compat/linux/arch/alpha/linux_sysent.c
cvs rdiff -u -r1.86 -r1.87 \
src/sys/compat/linux/arch/alpha/linux_syscallargs.h
cvs rdiff -u -r1.88 -r1.89 src/sys/compat/linux/arch/alpha/linux_syscalls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/linux_syscall.h
diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.87 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.88
--- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.87	Sun Dec  8 15:56:12 2013
+++ src/sys/compat/linux/arch/alpha/linux_syscall.h	Fri Dec 27 14:17:32 2013
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.87 2013/12/08 15:56:12 njoly Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.88 2013/12/27 14:17:32 njoly Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.81 2013/12/08 15:55:10 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -594,6 +594,15 @@
 /* syscall: tgkill ret: int args: int int int */
 #define	LINUX_SYS_tgkill	424
 
+/* syscall: stat64 ret: int args: const char * struct linux_stat64 * */
+#define	LINUX_SYS_stat64	425
+
+/* syscall: lstat64 ret: int args: const char * struct linux_stat64 * */
+#define	LINUX_SYS_lstat64	426
+
+/* syscall: fstat64 ret: int args: int struct linux_stat64 * */
+#define	LINUX_SYS_fstat64	427
+
 /* syscall: openat ret: int args: int const char * int ... */
 #define	LINUX_SYS_openat	450
 
@@ -606,6 +615,9 @@
 /* syscall: fchownat ret: int args: int const char * uid_t gid_t int */
 #define	LINUX_SYS_fchownat	453
 
+/* syscall: fstatat64 ret: int args: int const char * struct linux_stat64 * int */
+#define	LINUX_SYS_fstatat64	455
+
 /* syscall: unlinkat ret: int args: int const char * int */
 #define	LINUX_SYS_unlinkat	456
 
Index: src/sys/compat/linux/arch/alpha/linux_sysent.c
diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.87 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.88
--- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.87	Sun Dec  8 15:56:12 2013
+++ src/sys/compat/linux/arch/alpha/linux_sysent.c	Fri Dec 27 14:17:32 2013
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.87 2013/12/08 15:56:12 njoly Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.88 2013/12/27 14:17:32 njoly Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.81 2013/12/08 15:55:10 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.87 2013/12/08 15:56:12 njoly Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.88 2013/12/27 14:17:32 njoly Exp $);
 
 #if defined(_KERNEL_OPT)
 #include opt_sysv.h
@@ -920,12 +920,12 @@ struct sysent linux_sysent[] = {
 	linux_sys_nosys },			/* 423 = unimplemented semtimedop */
 	{ ns(struct linux_sys_tgkill_args), 0,
 	(sy_call_t *)linux_sys_tgkill },	/* 424 = tgkill */
-	{ 0, 0, 0,
-	linux_sys_nosys },			/* 425 = unimplemented stat64 */
-	{ 0, 0, 0,
-	linux_sys_nosys },			/* 426 = unimplemented lstat64 */
-	{ 0, 0, 0,
-	linux_sys_nosys },			/* 427 = unimplemented fstat64 */
+	{ ns(struct linux_sys_stat64_args), SYCALL_ARG_PTR,
+	(sy_call_t *)linux_sys_stat64 },	/* 425 = stat64 */
+	{ ns(struct linux_sys_lstat64_args), SYCALL_ARG_PTR,
+	(sy_call_t *)linux_sys_lstat64 },	/* 426 = lstat64 */
+	{ ns(struct linux_sys_fstat64_args), SYCALL_ARG_PTR,
+	(sy_call_t *)linux_sys_fstat64 },	/* 427 = fstat64 */
 	{ 0, 0, 0,
 	linux_sys_nosys },			/* 428 = unimplemented vserver */
 	{ 0, 0, 0,
@@ -980,8 +980,8 @@ struct sysent linux_sysent[] = {
 	(sy_call_t *)linux_sys_fchownat },	/* 453 = fchownat */
 	{ 0, 0, 0,
 	linux_sys_nosys },			/* 454 = unimplemented futimesat */
-	{ 0, 0, 0,
-	linux_sys_nosys },			/* 455 = unimplemented { int | linux_sys | | fstatat64 ( int fd , const char * path , struct linux_stat64 * sp , int flag ) ; } */
+	{ ns(struct linux_sys_fstatat64_args), SYCALL_ARG_PTR,
+	(sy_call_t *)linux_sys_fstatat64 },	/* 455 = fstatat64 */
 	{ ns(struct linux_sys_unlinkat_args), SYCALL_ARG_PTR,
 	(sy_call_t *)linux_sys_unlinkat },	/* 456 = unlinkat */
 	{ ns(struct sys_renameat_args), SYCALL_ARG_PTR,

Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h
diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.86 

CVS commit: src/sys/compat/linux/arch/alpha

2013-09-15 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Sep 15 12:59:17 UTC 2013

Modified Files:
src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c

Log Message:
Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/compat/linux/arch/alpha/linux_syscall.h \
src/sys/compat/linux/arch/alpha/linux_sysent.c
cvs rdiff -u -r1.82 -r1.83 \
src/sys/compat/linux/arch/alpha/linux_syscallargs.h
cvs rdiff -u -r1.84 -r1.85 src/sys/compat/linux/arch/alpha/linux_syscalls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/linux_syscall.h
diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.83 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.84
--- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.83	Wed Sep 19 21:24:36 2012
+++ src/sys/compat/linux/arch/alpha/linux_syscall.h	Sun Sep 15 12:59:17 2013
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.83 2012/09/19 21:24:36 pooka Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.84 2013/09/15 12:59:17 njoly Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.77 2012/09/19 21:19:14 pooka Exp
+ * created from	NetBSD: syscalls.master,v 1.78 2013/09/15 12:58:34 njoly Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -501,7 +501,7 @@
 /* syscall: setitimer ret: int args: int const struct itimerval50 * struct itimerval50 * */
 #define	LINUX_SYS_setitimer	362
 
-/* syscall: utimes ret: int args: char * struct timeval50 * */
+/* syscall: utimes ret: int args: char * struct linux_timeval * */
 #define	LINUX_SYS_utimes	363
 
 /* syscall: getrusage ret: int args: int struct rusage50 * */
Index: src/sys/compat/linux/arch/alpha/linux_sysent.c
diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.83 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.84
--- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.83	Wed Sep 19 21:24:36 2012
+++ src/sys/compat/linux/arch/alpha/linux_sysent.c	Sun Sep 15 12:59:17 2013
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.83 2012/09/19 21:24:36 pooka Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.84 2013/09/15 12:59:17 njoly Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.77 2012/09/19 21:19:14 pooka Exp
+ * created from	NetBSD: syscalls.master,v 1.78 2013/09/15 12:58:34 njoly Exp
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.83 2012/09/19 21:24:36 pooka Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.84 2013/09/15 12:59:17 njoly Exp $);
 
 #if defined(_KERNEL_OPT)
 #include opt_sysv.h
@@ -796,8 +796,8 @@ struct sysent linux_sysent[] = {
 	(sy_call_t *)compat_50_sys_getitimer },/* 361 = getitimer */
 	{ ns(struct compat_50_sys_setitimer_args), SYCALL_ARG_PTR,
 	(sy_call_t *)compat_50_sys_setitimer },/* 362 = setitimer */
-	{ ns(struct compat_50_sys_utimes_args), SYCALL_ARG_PTR,
-	(sy_call_t *)compat_50_sys_utimes },/* 363 = utimes */
+	{ ns(struct linux_sys_utimes_args), SYCALL_ARG_PTR,
+	(sy_call_t *)linux_sys_utimes },	/* 363 = utimes */
 	{ ns(struct compat_50_sys_getrusage_args), SYCALL_ARG_PTR,
 	(sy_call_t *)compat_50_sys_getrusage },/* 364 = getrusage */
 	{ ns(struct linux_sys_wait4_args), SYCALL_ARG_PTR,

Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h
diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.82 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.83
--- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.82	Wed Sep 19 21:24:36 2012
+++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h	Sun Sep 15 12:59:17 2013
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.82 2012/09/19 21:24:36 pooka Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.83 2013/09/15 12:59:17 njoly Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.77 2012/09/19 21:19:14 pooka Exp
+ * created from	NetBSD: syscalls.master,v 1.78 2013/09/15 12:58:34 njoly Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -784,7 +784,11 @@ struct compat_50_sys_getitimer_args;
 
 struct compat_50_sys_setitimer_args;
 
-struct compat_50_sys_utimes_args;
+struct linux_sys_utimes_args {
+	syscallarg(char *) path;
+	syscallarg(struct linux_timeval *) times;
+};
+check_syscall_args(linux_sys_utimes)
 
 struct compat_50_sys_getrusage_args;
 
@@ -1376,7 +1380,7 @@ int	compat_50_sys_getitimer(struct lwp *
 
 int	compat_50_sys_setitimer(struct lwp *, const struct compat_50_sys_setitimer_args *, register_t *);
 
-int	compat_50_sys_utimes(struct lwp *, const struct compat_50_sys_utimes_args *, register_t *);
+int	linux_sys_utimes(struct lwp *, const struct linux_sys_utimes_args *, register_t *);
 
 int	

CVS commit: src/sys/compat/linux/arch/alpha

2011-11-21 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Nov 21 22:00:43 UTC 2011

Modified Files:
src/sys/compat/linux/arch/alpha: linux_machdep.h

Log Message:
Adjust setup_linux_rt_sigframe/setup_linux_sigframe prototypes.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/compat/linux/arch/alpha/linux_machdep.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/linux_machdep.h
diff -u src/sys/compat/linux/arch/alpha/linux_machdep.h:1.11 src/sys/compat/linux/arch/alpha/linux_machdep.h:1.12
--- src/sys/compat/linux/arch/alpha/linux_machdep.h:1.11	Mon Apr 28 20:23:42 2008
+++ src/sys/compat/linux/arch/alpha/linux_machdep.h	Mon Nov 21 22:00:42 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_machdep.h,v 1.11 2008/04/28 20:23:42 martin Exp $	*/
+/*	$NetBSD: linux_machdep.h,v 1.12 2011/11/21 22:00:42 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -92,10 +92,12 @@ struct linux_rt_sigframe {
 
 #ifdef _KERNEL
 __BEGIN_DECLS
-void setup_linux_rt_sigframe(struct trapframe *, int, const sigset_t *);
-void setup_linux_sigframe(struct trapframe *, int, const sigset_t *);
+void setup_linux_rt_sigframe(struct trapframe *, const ksiginfo_t *,
+const sigset_t *);
+void setup_linux_sigframe(struct trapframe *, const ksiginfo_t *,
+const sigset_t *);
 int linux_restore_sigcontext(struct lwp *, struct linux_sigcontext,
-  sigset_t *);
+sigset_t *);
 void linux_syscall_intern(struct proc *);
 __END_DECLS
 #endif /* !_KERNEL */



CVS commit: src/sys/compat/linux/arch/alpha

2011-06-09 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jun  9 13:41:40 UTC 2011

Modified Files:
src/sys/compat/linux/arch/alpha: linux_machdep.c

Log Message:
Adapt to change to PCU.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/compat/linux/arch/alpha/linux_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/linux_machdep.c
diff -u src/sys/compat/linux/arch/alpha/linux_machdep.c:1.47 src/sys/compat/linux/arch/alpha/linux_machdep.c:1.48
--- src/sys/compat/linux/arch/alpha/linux_machdep.c:1.47	Fri Mar  4 22:25:31 2011
+++ src/sys/compat/linux/arch/alpha/linux_machdep.c	Thu Jun  9 13:41:40 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_machdep.c,v 1.47 2011/03/04 22:25:31 joerg Exp $	*/
+/*	$NetBSD: linux_machdep.c,v 1.48 2011/06/09 13:41:40 matt Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_machdep.c,v 1.47 2011/03/04 22:25:31 joerg Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_machdep.c,v 1.48 2011/06/09 13:41:40 matt Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -154,7 +154,8 @@
 	frametoreg(tf, (struct reg *)sigframe.uc.uc_mcontext.sc_regs);
 	sigframe.uc.uc_mcontext.sc_regs[R_SP] = alpha_pal_rdusp();
 
-	alpha_enable_fp(l, 1);
+	fpu_load();
+	alpha_pal_wrfen(1);
 	sigframe.uc.uc_mcontext.sc_fpcr = alpha_read_fpcr();
 	sigframe.uc.uc_mcontext.sc_fp_control = alpha_read_fp_c(l);
 	alpha_pal_wrfen(0);



CVS commit: src/sys/compat/linux/arch/alpha

2011-05-31 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Tue May 31 20:53:13 UTC 2011

Modified Files:
src/sys/compat/linux/arch/alpha: files.linux_alpha

Log Message:
Add needed linux_fadvise64.c


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/compat/linux/arch/alpha/files.linux_alpha

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/files.linux_alpha
diff -u src/sys/compat/linux/arch/alpha/files.linux_alpha:1.8 src/sys/compat/linux/arch/alpha/files.linux_alpha:1.9
--- src/sys/compat/linux/arch/alpha/files.linux_alpha:1.8	Wed Jul  7 01:30:33 2010
+++ src/sys/compat/linux/arch/alpha/files.linux_alpha	Tue May 31 20:53:13 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: files.linux_alpha,v 1.8 2010/07/07 01:30:33 chs Exp $
+#	$NetBSD: files.linux_alpha,v 1.9 2011/05/31 20:53:13 njoly Exp $
 #
 # Config file description for alpha-dependent Linux compat code.
 
@@ -6,6 +6,7 @@
 file	compat/linux/arch/alpha/linux_pipe.c		compat_linux
 file	compat/linux/arch/alpha/linux_syscalls.c	compat_linux
 file	compat/linux/arch/alpha/linux_sysent.c		compat_linux
+file	compat/linux/common/linux_fadvise64.c		compat_linux
 file	compat/linux/common/linux_file64.c		compat_linux
 file	compat/linux/common/linux_futex.c		compat_linux
 file	compat/linux/common/linux_olduname.c		compat_linux



CVS commit: src/sys/compat/linux/arch/alpha

2011-04-14 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Thu Apr 14 11:17:47 UTC 2011

Modified Files:
src/sys/compat/linux/arch/alpha: linux_pipe.c

Log Message:
Fix this so that it builds (missing struct keyword).


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/compat/linux/arch/alpha/linux_pipe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/linux_pipe.c
diff -u src/sys/compat/linux/arch/alpha/linux_pipe.c:1.14 src/sys/compat/linux/arch/alpha/linux_pipe.c:1.15
--- src/sys/compat/linux/arch/alpha/linux_pipe.c:1.14	Thu Apr 14 01:03:23 2011
+++ src/sys/compat/linux/arch/alpha/linux_pipe.c	Thu Apr 14 11:17:47 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_pipe.c,v 1.14 2011/04/14 01:03:23 christos Exp $	*/
+/*	$NetBSD: linux_pipe.c,v 1.15 2011/04/14 11:17:47 he Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_pipe.c,v 1.14 2011/04/14 01:03:23 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_pipe.c,v 1.15 2011/04/14 11:17:47 he Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -73,7 +73,7 @@
 }
 
 int
-linux_sys_pipe2(struct lwp *l, const linux_sys_pipe2_args *uap,
+linux_sys_pipe2(struct lwp *l, const struct linux_sys_pipe2_args *uap,
 register_t *retval)
 {
 	/* {