Only handle SIR_SERIAL if NZSC > 0.

This commit is contained in:
briggs 1999-03-27 05:21:20 +00:00
parent f41bf819c2
commit b15dc3ed17
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.71 1999/03/26 23:41:31 mycroft Exp $ */
/* $NetBSD: trap.c,v 1.72 1999/03/27 05:21:20 briggs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -511,12 +511,14 @@ copyfault:
case T_SSIR: /* Software interrupt */
case T_SSIR|T_USER:
#if NZSC > 0
if (ssir & SIR_SERIAL) {
void zssoft __P((int));
siroff(SIR_SERIAL);
uvmexp.softs++;
zssoft(0);
}
#endif
if (ssir & SIR_NET) {
void netintr __P((void));
siroff(SIR_NET);