Subject: port-sparc/1034: errors in sparc kernel build.
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: None <mrg@mame.mu.OZ.AU>
List: netbsd-bugs
Date: 05/08/1995 06:20:03
>Number:         1034
>Category:       port-sparc
>Synopsis:       errors in sparc kernel build.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May  8 06:20:02 1995
>Originator:     matthew green
>Organization:
bozotic softwar foundation
>Release:        6 may 95
>Environment:
	
System: NetBSD splode.mame.mu.OZ.AU 1.0A NetBSD 1.0A (_splode_) #217: Thu Apr 27 00:00:52 EST 1995 mrg@splode.mame.mu.OZ.AU:/orb/q/build/src/sys/arch/sparc/compile/_splode_ sparc


>Description:
	
	errors in building sparc kernel.

>How-To-Repeat:
>Fix:

Index: conf/files.sparc
===================================================================
RCS file: /local/cvs/src/sys/arch/sparc/conf/files.sparc,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 files.sparc
*** files.sparc	1995/05/07 16:10:56	1.1.1.1
--- files.sparc	1995/05/08 12:59:02
***************
*** 155,160 ****
--- 155,161 ----
  # SVR4 Binary Compatibility (COMPAT_SVR4)
  include "../../../compat/svr4/files.svr4"
  file	arch/sparc/sparc/svr4_machdep.c	compat_svr4
+ file	arch/sparc/sparc/sunos_machdep.c compat_sunos
  
  # SunOS Binary Compatibility (COMPAT_SUNOS)
  include "../../../compat/sunos/files.sunos"
Index: sparc/machdep.c
===================================================================
RCS file: /local/cvs/src/sys/arch/sparc/sparc/machdep.c,v
retrieving revision 1.4
diff -c -r1.4 machdep.c
*** machdep.c	1995/04/18 16:47:09	1.4
--- machdep.c	1995/05/08 13:05:59
***************
*** 322,336 ****
   */
  /* ARGSUSED */
  void
! setregs(p, entry, stack, retval)
  	struct proc *p;
! 	u_long entry;
  	u_long stack;
  	register_t *retval;
  {
  	register struct trapframe *tf = p->p_md.md_tf;
  	register struct fpstate *fs;
  	register int psr;
  
  	/*
  	 * The syscall will ``return'' to npc or %g7 or %g2; set them all.
--- 322,337 ----
   */
  /* ARGSUSED */
  void
! setregs(p, ep, stack, retval)
  	struct proc *p;
! 	struct exec_package *ep;
  	u_long stack;
  	register_t *retval;
  {
  	register struct trapframe *tf = p->p_md.md_tf;
  	register struct fpstate *fs;
  	register int psr;
+ 	register u_long entry = ep->ep_entry;
  
  	/*
  	 * The syscall will ``return'' to npc or %g7 or %g2; set them all.
Index: sparc/sunos_machdep.c
===================================================================
RCS file: sunos_machdep.c
diff -N sunos_machdep.c
*** /dev/null	Mon May  8 04:05:13 1995
--- sunos_machdep.c	Mon May  8 23:01:05 1995
***************
*** 0 ****
--- 1,55 ----
+ /*	$NetBSD$	*/
+ 
+ /*
+  * Copyright (c) 1995 Matthew Green
+  * All rights reserved.
+  *
+  * Redistribution and use in source and binary forms, with or without
+  * modification, are permitted provided that the following conditions
+  * are met:
+  * 1. Redistributions of source code must retain the above copyright
+  *    notice, this list of conditions and the following disclaimer.
+  * 2. Redistributions in binary form must reproduce the above copyright
+  *    notice, this list of conditions and the following disclaimer in the
+  *    documentation and/or other materials provided with the distribution.
+  * 3. The name of the author may not be used to endorse or promote products
+  *    derived from this software without specific prior written permission
+  *
+  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+  */
+ 
+ #include <sys/param.h>
+ #include <sys/systm.h>
+ #include <sys/proc.h>
+ #include <sys/namei.h>
+ #include <sys/user.h>
+ #include <sys/filedesc.h>
+ #include <sys/ioctl.h>
+ #include <sys/mount.h>
+ #include <sys/kernel.h>
+ #include <sys/signal.h>
+ #include <sys/signalvar.h>
+ #include <sys/malloc.h>
+ 
+ #include <sys/syscallargs.h>
+ #include <compat/sunos/sunos_syscallargs.h>
+ 
+ int sunos_sigreturn __P((struct proc *, struct sunos_sigreturn_args *, register_t *));
+ 
+ int
+ sunos_sigreturn(p, uap, retval)
+         register struct proc *p;
+ 	struct sunos_sigreturn_args *uap;
+ 	register_t *retval;
+ {
+ 	return (sigreturn(p, (struct sigreturn_args *)uap, retval));
+ }
>Audit-Trail:
>Unformatted: