diff options
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/i86pc/io/apix/apix.c | 2 | ||||
-rw-r--r-- | usr/src/uts/i86pc/os/trap.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/usr/src/uts/i86pc/io/apix/apix.c b/usr/src/uts/i86pc/io/apix/apix.c index 87e4b2fe04..9ab5f930ab 100644 --- a/usr/src/uts/i86pc/io/apix/apix.c +++ b/usr/src/uts/i86pc/io/apix/apix.c @@ -355,7 +355,7 @@ apix_get_intr_handler(int cpu, short vec) apix_vector_t *apix_vector; ASSERT(cpu < apic_nproc && vec < APIX_NVECTOR); - if (cpu >= apic_nproc) + if (cpu >= apic_nproc || vec >= APIX_NVECTOR) return (NULL); apix_vector = apixs[cpu]->x_vectbl[vec]; diff --git a/usr/src/uts/i86pc/os/trap.c b/usr/src/uts/i86pc/os/trap.c index 49d41f770c..ba3d7ac6e9 100644 --- a/usr/src/uts/i86pc/os/trap.c +++ b/usr/src/uts/i86pc/os/trap.c @@ -2068,6 +2068,7 @@ dump_ttrace(void) #endif /* Define format for the TYPE and VC fields */ const char fmt2[] = "%4s %3x"; + const char fmt2s[] = "%4s %3s"; char data2[9]; /* length of string formatted by fmt2 + 1 */ /* * Define format for the HANDLER field. Width is arbitrary, but should @@ -2157,6 +2158,14 @@ dump_ttrace(void) break; case TT_INTERRUPT: + if (rec->ttr_regs.r_trapno == T_SOFTINT) { + (void) snprintf(data2, sizeof (data2), + fmt2s, "intr", "-"); + (void) snprintf(data3, sizeof (data3), + fmt3s, "(fakesoftint)"); + break; + } + (void) snprintf(data2, sizeof (data2), fmt2, "intr", rec->ttr_vector); if (get_intr_handler != NULL) |