svn commit: r210176 - in head/sys: sparc64/include sparc64/sparc64
sun4v/include sun4v/sun4v
Alexander Motin
mav at FreeBSD.org
Fri Jul 16 22:09:30 UTC 2010
Author: mav
Date: Fri Jul 16 22:09:29 2010
New Revision: 210176
URL: http://svn.freebsd.org/changeset/base/210176
Log:
Allocate proper ammount of memory for interrupt names on sparc64 and
sun4v, same as done on other architectures. This removes garbage from
`vmstat -ia` output.
Reviewed by: marius@
Modified:
head/sys/sparc64/include/intr_machdep.h
head/sys/sparc64/sparc64/exception.S
head/sys/sparc64/sparc64/genassym.c
head/sys/sun4v/include/intr_machdep.h
head/sys/sun4v/sun4v/exception.S
Modified: head/sys/sparc64/include/intr_machdep.h
==============================================================================
--- head/sys/sparc64/include/intr_machdep.h Fri Jul 16 20:42:20 2010 (r210175)
+++ head/sys/sparc64/include/intr_machdep.h Fri Jul 16 22:09:29 2010 (r210176)
@@ -33,7 +33,6 @@
#define PIL_MAX (1 << 4)
#define IV_MAX (1 << 11)
-#define IV_NAMLEN 1024
#define IR_FREE (PIL_MAX * 2)
Modified: head/sys/sparc64/sparc64/exception.S
==============================================================================
--- head/sys/sparc64/sparc64/exception.S Fri Jul 16 20:42:20 2010 (r210175)
+++ head/sys/sparc64/sparc64/exception.S Fri Jul 16 22:09:29 2010 (r210176)
@@ -365,7 +365,7 @@ ENTRY(rsf_fatal)
sir
END(rsf_fatal)
- .comm intrnames, IV_NAMLEN
+ .comm intrnames, IV_MAX * (MAXCOMLEN + 1)
.comm eintrnames, 0
.comm intrcnt, IV_MAX * 8
Modified: head/sys/sparc64/sparc64/genassym.c
==============================================================================
--- head/sys/sparc64/sparc64/genassym.c Fri Jul 16 20:42:20 2010 (r210175)
+++ head/sys/sparc64/sparc64/genassym.c Fri Jul 16 22:09:29 2010 (r210176)
@@ -160,6 +160,7 @@ ASSYM(HASH_ENTRY_SHIFT, HASH_ENTRY_SHIFT
ASSYM(V_INTR, offsetof(struct vmmeter, v_intr));
+ASSYM(MAXCOMLEN, MAXCOMLEN);
ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread));
ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb));
ASSYM(PC_CPUID, offsetof(struct pcpu, pc_cpuid));
Modified: head/sys/sun4v/include/intr_machdep.h
==============================================================================
--- head/sys/sun4v/include/intr_machdep.h Fri Jul 16 20:42:20 2010 (r210175)
+++ head/sys/sun4v/include/intr_machdep.h Fri Jul 16 22:09:29 2010 (r210176)
@@ -33,7 +33,6 @@
#define PIL_MAX (1 << 4)
#define IV_MAX (1 << 11)
-#define IV_NAMLEN 1024
#define IR_FREE (PIL_MAX * 2)
Modified: head/sys/sun4v/sun4v/exception.S
==============================================================================
--- head/sys/sun4v/sun4v/exception.S Fri Jul 16 20:42:20 2010 (r210175)
+++ head/sys/sun4v/sun4v/exception.S Fri Jul 16 22:09:29 2010 (r210176)
@@ -1948,7 +1948,7 @@ END(fork_trampoline)
- .comm intrnames, IV_NAMLEN
+ .comm intrnames, IV_MAX * (MAXCOMLEN + 1)
.comm eintrnames, 0
.comm intrcnt, IV_MAX * 8
More information about the svn-src-head
mailing list