changeset 19394:faa0ad55fea7

12214 genunix: sparc is missing nosys32 Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Peter Tribble <peter.tribble@gmail.com> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
author Toomas Soome <tsoome@me.com>
date Fri, 17 Jan 2020 22:14:36 -0800
parents 1fa016d33bf1
children 63dade78d5a9
files usr/src/uts/sparc/os/syscall.c
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/sparc/os/syscall.c	Wed Jan 15 21:13:06 2020 +0000
+++ b/usr/src/uts/sparc/os/syscall.c	Fri Jan 17 22:14:36 2020 -0800
@@ -191,7 +191,7 @@
 #endif
 
 /*
- * 	Save the system call arguments in a safe place.
+ *	Save the system call arguments in a safe place.
  *	lwp->lwp_ap normally points to the out regs in the reg structure.
  *	If the user is going to change the out registers, g1, or the stack,
  *	and might want to get the args (for /proc tracing), it must copy
@@ -333,12 +333,18 @@
  * This works for old or new calling sequence.
  */
 int64_t
-nosys()
+nosys(void)
 {
 	tsignal(curthread, SIGSYS);
 	return ((int64_t)set_errno(ENOSYS));
 }
 
+int
+nosys32(void)
+{
+	return (nosys());
+}
+
 /*
  * Perform pre-system-call processing, including stopping for tracing,
  * auditing, microstate-accounting, etc.
@@ -1004,7 +1010,7 @@
 /*
  * Loadable syscall support.
  *	If needed, load the module, then reserve it by holding a read
- * 	lock for the duration of the call.
+ *	lock for the duration of the call.
  *	Later, if the syscall is not unloadable, it could patch the vector.
  */
 /*ARGSUSED*/
@@ -1070,7 +1076,7 @@
 	 * Handle argument setup, unless already done in pre_syscall().
 	 */
 	if (callp->sy_narg > 5) {
-		if (save_syscall_args()) 	/* move args to LWP array */
+		if (save_syscall_args())	/* move args to LWP array */
 			return ((int64_t)set_errno(EFAULT));
 	} else if (!lwp->lwp_argsaved) {
 		long *ap;