NetBSD Problem Report #7798

Received: (qmail 20802 invoked from network); 17 Jun 1999 08:03:29 -0000
Message-Id: <199906170801.RAA04117@shampoo.ics.es.osaka-u.ac.jp>
Date: Thu, 17 Jun 1999 17:01:11 +0900 (JST)
From: h-masuda@ics.es.osaka-u.ac.jp
Reply-To: h-masuda@ics.es.osaka-u.ac.jp
To: gnats-bugs@gnats.netbsd.org
Subject: some MACROs are undefined at arch/newsmips/newsmips/locore_machdep.S
X-Send-Pr-Version: 3.95

>Number:         7798
>Category:       port-newsmips
>Synopsis:       some MACROs are undefined at arch/newsmips/newsmips/locore_machdep.S
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-newsmips-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 17 01:05:00 +0000 1999
>Closed-Date:    Sun Jun 20 05:43:54 +0000 1999
>Last-Modified:  Sun Jun 20 05:45:34 +0000 1999
>Originator:     
>Release:        NetBSD-current source 19990601
>Organization:
Information Computer Science Dept.(TOKLAB), OSAKA Univ. JAPAN
>Environment:
System: NetBSD shampoo.ics.es.osaka-u.ac.jp 1.4C NetBSD 1.4C (SHAMPOO) #20: Wed Jun 16 17:41:23 JST 1999 h-masuda@shampoo.ics.es.osaka-u.ac.jp:/usr/src/sys/arch/newsmips/compile/SHAMPOO newsmips

>Description:
	Building kernel is failed because some MACROs are undefined.

... (snip) ...
cc -x assembler-with-cpp -traditional-cpp -D_LOCORE -I. -I../../../../arch -I../../../.. -nostdinc -Dnews3400 -DMIPS1 -DCPU_SINGLE -DLKM -DNKMEMCLUSTERS="0x400" -DDEBUG -DDIAGNOSTIC -DNS -DMAXUSERS=16 -D_KERNEL -Dnewsmips -c ../../../../arch/newsmips/newsmips/locore_machdep.S
 ../../../../arch/newsmips/newsmips/locore_machdep.S: Assembler messages: ../../../../arch/newsmips/newsmips/locore_machdep.S:184: Error: absolute expression required `li'
 ../../../../arch/newsmips/newsmips/locore_machdep.S:197: Error: absolute expression required `li'
 ../../../../arch/newsmips/newsmips/locore_machdep.S:207: Error: absolute expression required `li'
 ../../../../arch/newsmips/newsmips/locore_machdep.S:217: Error: absolute expression required `li'
 ../../../../arch/newsmips/newsmips/locore_machdep.S:227: Error: absolute expression required `li'
 ../../../../arch/newsmips/newsmips/locore_machdep.S:238: Error: absolute expression required `li'
 *** Error code 1

 Stop.

	These lines contain macro "MIPS_INT_MASK_SPL[0-5]".
	These macros were in sys/arch/mips/include/cpuarch.h in the past I knew,
	but now sys/arch/mips/include/cpuarch.h dose not exists.

>How-To-Repeat:
	cd sys/arch/newsmips/conf
	config GENERIC
	cd ../compile/GENERIC
	make clean
	make depend
	make
>Fix:
	These macros append somewhere(may be sys/arch/mips/include/cpuregs.h?). 
	But I don't know wheather this is correct way or not, sorry.

(from old cpuarch.h) ---
/*
 * nesting interrupt masks.
 */
#define MIPS_INT_MASK_SPL_SOFT0	MIPS_SOFT_INT_MASK_0
#define MIPS_INT_MASK_SPL_SOFT1	(MIPS_SOFT_INT_MASK_1|MIPS_INT_MASK_SPL_SOFT0)
#define MIPS_INT_MASK_SPL0	(MIPS_INT_MASK_0|MIPS_INT_MASK_SPL_SOFT1)
#define MIPS_INT_MASK_SPL1	(MIPS_INT_MASK_1|MIPS_INT_MASK_SPL0)
#define MIPS_INT_MASK_SPL2	(MIPS_INT_MASK_2|MIPS_INT_MASK_SPL1)
#define MIPS_INT_MASK_SPL3	(MIPS_INT_MASK_3|MIPS_INT_MASK_SPL2)
#define MIPS_INT_MASK_SPL4	(MIPS_INT_MASK_4|MIPS_INT_MASK_SPL3)
#define MIPS_INT_MASK_SPL5	(MIPS_INT_MASK_5|MIPS_INT_MASK_SPL4)
---
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: tsubai 
State-Changed-When: Sat Jun 19 22:43:54 PDT 1999 
State-Changed-Why:  
Applied suggested change to locore_machdep.S. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.