Subject: port-evbarm/37084: evbarm kernels fail to build - missing splstatclock()
To: None <port-evbarm-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <mrg@eterna.com.au>
List: netbsd-bugs
Date: 10/09/2007 05:35:00
>Number:         37084
>Category:       port-evbarm
>Synopsis:       evbarm kernels fail to build - missing splstatclock()
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-evbarm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 09 05:35:00 +0000 2007
>Originator:     matthew green
>Release:        NetBSD 4.99.22
>Organization:
people's front against (bozotic) www (softwar foundation)
>Environment:
any
>Description:

	building evbarm release results in CP1300 kernel failing to build
	as splstatclock() is missing.

>How-To-Repeat:

	./build.sh -m evbarm release

>Fix:

	this fixes the build for me but i assume it is wrong (or at least
	sub optimal) as in the old arm intr/spl code, splclock() and
	splstatclock() are not the same.

Index: include/intr.h
===================================================================
RCS file: /cvsroot/src/sys/arch/evbarm/include/intr.h,v
retrieving revision 1.17
diff -p -r1.17 intr.h
*** include/intr.h	9 Mar 2007 06:45:20 -0000	1.17
--- include/intr.h	9 Oct 2007 05:32:54 -0000
***************
*** 88,93 ****
--- 88,95 ----
  
  #define	__NEWINTR	/* enables new hooks in cpu_fork()/cpu_switch() */
  
+ #define splstatclock()	splclock()
+ 
  #ifndef _LOCORE
  
  #include <sys/device.h>