Test CF after a btrl operation instead of testing ZF (which is undefined).

This commit is contained in:
Tor Egge 1999-04-10 19:19:02 +00:00
parent 775986fc09
commit 0bf47fca4f
3 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)