Test CF after a btrl operation instead of testing ZF (which is undefined).
This commit is contained in:
parent
775986fc09
commit
0bf47fca4f
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* from: vector.s, 386BSD 0.1 unknown origin
|
* from: vector.s, 386BSD 0.1 unknown origin
|
||||||
* $Id: apic_vector.s,v 1.33 1998/09/04 23:03:04 luoqi Exp $
|
* $Id: apic_vector.s,v 1.34 1998/09/06 22:41:41 tegge Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -682,7 +682,7 @@ _Xcpuast:
|
|||||||
btrl %eax, _checkstate_pending_ast
|
btrl %eax, _checkstate_pending_ast
|
||||||
lock
|
lock
|
||||||
btrl %eax, CNAME(resched_cpus)
|
btrl %eax, CNAME(resched_cpus)
|
||||||
jz 2f
|
jnc 2f
|
||||||
movl $1, CNAME(want_resched)
|
movl $1, CNAME(want_resched)
|
||||||
lock
|
lock
|
||||||
incl CNAME(want_resched_cnt)
|
incl CNAME(want_resched_cnt)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* from: vector.s, 386BSD 0.1 unknown origin
|
* from: vector.s, 386BSD 0.1 unknown origin
|
||||||
* $Id: apic_vector.s,v 1.33 1998/09/04 23:03:04 luoqi Exp $
|
* $Id: apic_vector.s,v 1.34 1998/09/06 22:41:41 tegge Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -682,7 +682,7 @@ _Xcpuast:
|
|||||||
btrl %eax, _checkstate_pending_ast
|
btrl %eax, _checkstate_pending_ast
|
||||||
lock
|
lock
|
||||||
btrl %eax, CNAME(resched_cpus)
|
btrl %eax, CNAME(resched_cpus)
|
||||||
jz 2f
|
jnc 2f
|
||||||
movl $1, CNAME(want_resched)
|
movl $1, CNAME(want_resched)
|
||||||
lock
|
lock
|
||||||
incl CNAME(want_resched_cnt)
|
incl CNAME(want_resched_cnt)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* from: vector.s, 386BSD 0.1 unknown origin
|
* from: vector.s, 386BSD 0.1 unknown origin
|
||||||
* $Id: apic_vector.s,v 1.33 1998/09/04 23:03:04 luoqi Exp $
|
* $Id: apic_vector.s,v 1.34 1998/09/06 22:41:41 tegge Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -682,7 +682,7 @@ _Xcpuast:
|
|||||||
btrl %eax, _checkstate_pending_ast
|
btrl %eax, _checkstate_pending_ast
|
||||||
lock
|
lock
|
||||||
btrl %eax, CNAME(resched_cpus)
|
btrl %eax, CNAME(resched_cpus)
|
||||||
jz 2f
|
jnc 2f
|
||||||
movl $1, CNAME(want_resched)
|
movl $1, CNAME(want_resched)
|
||||||
lock
|
lock
|
||||||
incl CNAME(want_resched_cnt)
|
incl CNAME(want_resched_cnt)
|
||||||
|
Loading…
Reference in New Issue
Block a user