summaryrefslogtreecommitdiffstats
path: root/sys/sun4v
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2010-07-16 22:09:29 +0000
committermav <mav@FreeBSD.org>2010-07-16 22:09:29 +0000
commit6a650899c53c91bd3d9a70181590b1ab28b58e96 (patch)
treeac6c5fe1801280bcc1a2eca0d68022b85d4363ee /sys/sun4v
parent345648161c77b0585270e9d576b88fe96aa96f6c (diff)
downloadFreeBSD-src-6a650899c53c91bd3d9a70181590b1ab28b58e96.zip
FreeBSD-src-6a650899c53c91bd3d9a70181590b1ab28b58e96.tar.gz
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@
Diffstat (limited to 'sys/sun4v')
-rw-r--r--sys/sun4v/include/intr_machdep.h1
-rw-r--r--sys/sun4v/sun4v/exception.S2
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/sun4v/include/intr_machdep.h b/sys/sun4v/include/intr_machdep.h
index e933c8a..5f22c93 100644
--- a/sys/sun4v/include/intr_machdep.h
+++ b/sys/sun4v/include/intr_machdep.h
@@ -33,7 +33,6 @@
#define PIL_MAX (1 << 4)
#define IV_MAX (1 << 11)
-#define IV_NAMLEN 1024
#define IR_FREE (PIL_MAX * 2)
diff --git a/sys/sun4v/sun4v/exception.S b/sys/sun4v/sun4v/exception.S
index 9daa3d3..c1e6faa6 100644
--- a/sys/sun4v/sun4v/exception.S
+++ b/sys/sun4v/sun4v/exception.S
@@ -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
OpenPOWER on IntegriCloud