Increase spl_masks[] size by one and set the extra element to 0.
irq_entry accesses here.
This commit is contained in:
parent
36abaeee9b
commit
dfddb1e107
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: psl.h,v 1.1 2001/02/23 21:23:49 reinoud Exp $ */
|
||||
/* $NetBSD: psl.h,v 1.2 2001/03/31 12:22:37 toshii Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Mark Brinicombe.
|
||||
|
@ -100,7 +100,7 @@ void setsoftintr __P((u_int intrmask));
|
|||
|
||||
extern int current_spl_level;
|
||||
|
||||
extern u_int spl_masks[_SPL_LEVELS];
|
||||
extern u_int spl_masks[_SPL_LEVELS + 1];
|
||||
extern u_int spl_smasks[_SPL_LEVELS];
|
||||
#endif /* _LOCORE */
|
||||
#endif /* _KERNEL */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: stubs.c,v 1.32 2001/03/04 19:05:56 matt Exp $ */
|
||||
/* $NetBSD: stubs.c,v 1.33 2001/03/31 12:22:38 toshii Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1998 Mark Brinicombe.
|
||||
|
@ -244,7 +244,7 @@ dumpsys()
|
|||
/* This is interrupt / SPL related */
|
||||
|
||||
int current_spl_level = _SPL_HIGH;
|
||||
u_int spl_masks[_SPL_LEVELS];
|
||||
u_int spl_masks[_SPL_LEVELS + 1];
|
||||
u_int spl_smasks[_SPL_LEVELS];
|
||||
int safepri = _SPL_0;
|
||||
|
||||
|
@ -267,6 +267,7 @@ set_spl_masks()
|
|||
spl_masks[_SPL_CLOCK] = irqmasks[IPL_CLOCK];
|
||||
spl_masks[_SPL_HIGH] = irqmasks[IPL_HIGH];
|
||||
spl_masks[_SPL_SERIAL] = irqmasks[IPL_SERIAL];
|
||||
spl_masks[_SPL_LEVELS] = 0;
|
||||
|
||||
spl_smasks[_SPL_0] = 0xffffffff;
|
||||
for (loop = 0; loop < _SPL_SOFTSERIAL; ++loop)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: stubs.c,v 1.1 2001/02/23 03:48:13 ichiro Exp $ */
|
||||
/* $NetBSD: stubs.c,v 1.2 2001/03/31 12:22:38 toshii Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1998 Mark Brinicombe.
|
||||
|
@ -244,7 +244,7 @@ dumpsys()
|
|||
/* This is interrupt / SPL related */
|
||||
|
||||
int current_spl_level = _SPL_HIGH;
|
||||
u_int spl_masks[_SPL_LEVELS];
|
||||
u_int spl_masks[_SPL_LEVELS + 1];
|
||||
u_int spl_smasks[_SPL_LEVELS];
|
||||
int safepri = _SPL_0;
|
||||
|
||||
|
@ -267,6 +267,7 @@ set_spl_masks()
|
|||
spl_masks[_SPL_CLOCK] = imask[IPL_CLOCK];
|
||||
spl_masks[_SPL_HIGH] = imask[IPL_HIGH];
|
||||
spl_masks[_SPL_SERIAL] = imask[IPL_SERIAL];
|
||||
spl_masks[_SPL_LEVELS] = 0;
|
||||
|
||||
spl_smasks[_SPL_0] = 0xffffffff;
|
||||
for (loop = 0; loop < _SPL_SOFTSERIAL; ++loop)
|
||||
|
|
Loading…
Reference in New Issue