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@
This commit is contained in:
mav 2010-07-16 22:09:29 +00:00
parent 345648161c
commit 6a650899c5
5 changed files with 3 additions and 4 deletions

View File

@ -33,7 +33,6 @@
#define PIL_MAX (1 << 4)
#define IV_MAX (1 << 11)
#define IV_NAMLEN 1024
#define IR_FREE (PIL_MAX * 2)

View File

@ -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

View File

@ -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));

View File

@ -33,7 +33,6 @@
#define PIL_MAX (1 << 4)
#define IV_MAX (1 << 11)
#define IV_NAMLEN 1024
#define IR_FREE (PIL_MAX * 2)

View File

@ -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