Subject: port-newsmips/7798: some MACROs are undefined at arch/newsmips/newsmips/locore_machdep.S
To: None <gnats-bugs@gnats.netbsd.org>
From: None <h-masuda@ics.es.osaka-u.ac.jp>
List: netbsd-bugs
Date: 06/17/1999 01:05:51
>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 (NetBSD/newsmips Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 17 01:05:00 1999
>Last-Modified:
>Originator:     
>Organization:
Information Computer Science Dept.(TOKLAB), OSAKA Univ. JAPAN
>Release:        NetBSD-current source 19990601
>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)
---
>Audit-Trail:
>Unformatted: