NetBSD Problem Report #8445

Received: (qmail 29652 invoked from network); 19 Sep 1999 11:04:47 -0000
Message-Id: <199909191104.UAA13664@mirage.ceres.dti.ne.jp>
Date: Sun, 19 Sep 1999 20:04:36 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: missing _spl*() prototype in newsmips/include/intr.h
X-Send-Pr-Version: 3.95

>Number:         8445
>Category:       port-newsmips
>Synopsis:       missing _spl*() prototype in newsmips/include/intr.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-newsmips-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 19 04:05:00 +0000 1999
>Closed-Date:    Wed Nov 10 09:33:04 +0000 1999
>Last-Modified:  Wed Nov 10 09:34:45 +0000 1999
>Originator:     Izumi Tsutsui
>Release:        NetBSD-current 19990918
>Organization:
Izumi Tsutsui	Himeji City, Japan
>Environment:
System: NetBSD 1.4K newsmips on NWS-3470D

>Description:
Some prototype declaration of the functions in mips/locore.s
are missing so newsmips kernel does not compile.

>How-To-Repeat:
Config and make a newsmips kernel.

cc  -O2 -Werror -Wall -Wno-parentheses -Wpointer-arith -Wno-main -G0 \
 -mno-abicalls -mno-half-pic -I. -I../../../../arch -I../../../.. \
-nostdinc -Dnews3400 -DMIPS1 -DCPU_SINGLE -DLKM -DNKMEMCLUSTERS="0x400" \
-DDIAGNOSTIC -DMAXUSERS=16 -D_KERNEL -Dnewsmips \
 -c ../../../../arch/mips/mips/trap.c
cc1: warnings being treated as errors
../../../../arch/mips/mips/trap.c: In function `syscall':
../../../../arch/mips/mips/trap.c:257: warning: implicit declaration of function `_splset'
*** Error code 1

>Fix:
Add declarations in newsmips/include/intr.h as other mips archs.
(or should be in mips/include/intr.h ?)

Index: intr.h
===================================================================
RCS file: /cvs/repository/src/sys/arch/newsmips/include/intr.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 intr.h
--- intr.h	1999/09/11 15:53:15	1.1.1.1
+++ intr.h	1999/09/19 08:04:33
@@ -51,6 +51,14 @@
 #define splclock cpu_spl2
 #define splstatclock cpu_spl2

+extern int _splraise __P((int));
+extern int _spllower __P((int));
+extern int _splset __P((int));
+extern int _splget __P((void));
+extern void _splnone __P((void));
+extern void _setsoftintr __P((int));
+extern void _clrsoftintr __P((int));
+
 extern void setsoftnet __P((void)), clearsoftnet __P((void));
 extern void setsoftclock __P((void)), clearsoftclock __P((void));


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: tsubai 
State-Changed-When: Wed Nov 10 01:33:04 PST 1999 
State-Changed-Why:  
Fixed. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.