Subject: port-arm/17971: hpcarm needs kernel symbols for vmstat
To: None <gnats-bugs@gnats.netbsd.org>
From: Brad Spencer <brad@anduin.eldar.org>
List: netbsd-bugs
Date: 08/17/2002 13:34:53
>Number:         17971
>Category:       port-arm
>Synopsis:       hpcarm needs kernel symbols for vmstat
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 17 10:35:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Brad Spencer
>Release:        NetBSD 1.6E
>Organization:
	Home
>Environment:
System: NetBSD meriadoc 1.6E NetBSD 1.6E (MERIADOC) #7: Fri Aug 16 21:59:23 EDT 2002 brad@meriadoc:/usr/src/sys/arch/hpcarm/compile/MERIADOC hpcarm
Architecture: arm
Machine: hpcarm

>Description:
vmstat wants a number of kernel symbols before it will work at all.

>How-To-Repeat:
Try to run vmstat on a hpcarm system.  Indeed, perhaps on any system
that uses the sa11x0 code.

>Fix:
Apply this to: sys/arch/arm/sa11x0/sa11x0_irq.S

--- sa11x0_irq.S.DIST	Sat Jul 20 03:19:50 2002
+++ sa11x0_irq.S	Sat Aug 10 21:13:32 2002
@@ -334,7 +334,13 @@
 
 
 #ifdef IRQSTATS
-	.globl	_C_LABEL(intrcnt), _C_LABEL(sintrcnt)
+	.global _C_LABEL(intrnames), _C_LABEL(eintrnames)
+	.global _C_LABEL(eintrcnt)
+_C_LABEL(intrnames): 
+_C_LABEL(eintrnames):
+_C_LABEL(eintrcnt):
+
+		.globl	_C_LABEL(intrcnt), _C_LABEL(sintrcnt)
 
 _C_LABEL(intrcnt):
 	.space	ICU_LEN*4  /* XXX Should be linked to number of interrupts */

>Release-Note:
>Audit-Trail:
>Unformatted: