summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
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/sparc64
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/sparc64')
-rw-r--r--sys/sparc64/include/intr_machdep.h1
-rw-r--r--sys/sparc64/sparc64/exception.S2
-rw-r--r--sys/sparc64/sparc64/genassym.c1
3 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/include/intr_machdep.h b/sys/sparc64/include/intr_machdep.h
index 46a6196..e3667e1 100644
--- a/sys/sparc64/include/intr_machdep.h
+++ b/sys/sparc64/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/sparc64/sparc64/exception.S b/sys/sparc64/sparc64/exception.S
index a0f6f6e..c796251 100644
--- a/sys/sparc64/sparc64/exception.S
+++ b/sys/sparc64/sparc64/exception.S
@@ -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
diff --git a/sys/sparc64/sparc64/genassym.c b/sys/sparc64/sparc64/genassym.c
index f8cd6a2..6f55fe8 100644
--- a/sys/sparc64/sparc64/genassym.c
+++ b/sys/sparc64/sparc64/genassym.c
@@ -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));
OpenPOWER on IntegriCloud