NetBSD Problem Report #1034
From gnats Mon May 8 06:12:11 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id GAA14880 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Mon, 8 May 1995 06:12:10 -0700
Message-Id: <199505081312.XAA26804@splode.mame.mu.OZ.AU>
Date: Mon, 8 May 1995 23:12:46 +1000
From: mrg@mame.mu.OZ.AU
Reply-To: mrg@mame.mu.OZ.AU
To: gnats-bugs@NetBSD.ORG
Subject: errors in sparc kernel build.
X-Send-Pr-Version: 3.2
>Number: 1034
>Category: port-sparc
>Synopsis: errors in sparc kernel build.
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 08 06:20:02 +0000 1995
>Closed-Date: Tue Oct 10 03:14:43 +0000 1995
>Last-Modified: Tue Oct 10 03:16:22 +0000 1995
>Originator: matthew green
>Release: 6 may 95
>Organization:
bozotic softwar foundation
>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));
+ }
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Mon Oct 9 23:14:43 EDT 1995
State-Changed-Why:
Has been applied.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.