Make sure interrupts are disabled before jumping to a resume point, to prevent
races.
This commit is contained in:
parent
f149f4f6f1
commit
3afeb8d6b0
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: icu.s,v 1.43 1995/10/11 04:20:31 mycroft Exp $ */
|
||||
/* $NetBSD: icu.s,v 1.44 1996/01/07 02:07:07 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved.
|
||||
@ -103,6 +103,7 @@ IDTVEC(doreti)
|
||||
bsfl %eax,%eax # slow, but not worth optimizing
|
||||
btrl %eax,_ipending
|
||||
jnc 1b # some intr cleared the in-memory bit
|
||||
cli
|
||||
jmp *_Xresume(,%eax,4)
|
||||
2: /* Check for ASTs on exit to user mode. */
|
||||
cli
|
||||
|
Loading…
Reference in New Issue
Block a user