From 0bf47fca4f0c9e7dcd7e45212c094faf8f731f7b Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Sat, 10 Apr 1999 19:19:02 +0000 Subject: [PATCH] Test CF after a btrl operation instead of testing ZF (which is undefined). --- sys/amd64/amd64/apic_vector.S | 4 ++-- sys/i386/i386/apic_vector.s | 4 ++-- sys/i386/isa/apic_vector.s | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/amd64/amd64/apic_vector.S b/sys/amd64/amd64/apic_vector.S index 17f894204dd9..10c412fa61e3 100644 --- a/sys/amd64/amd64/apic_vector.S +++ b/sys/amd64/amd64/apic_vector.S @@ -1,6 +1,6 @@ /* * 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 lock btrl %eax, CNAME(resched_cpus) - jz 2f + jnc 2f movl $1, CNAME(want_resched) lock incl CNAME(want_resched_cnt) diff --git a/sys/i386/i386/apic_vector.s b/sys/i386/i386/apic_vector.s index 17f894204dd9..10c412fa61e3 100644 --- a/sys/i386/i386/apic_vector.s +++ b/sys/i386/i386/apic_vector.s @@ -1,6 +1,6 @@ /* * 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 lock btrl %eax, CNAME(resched_cpus) - jz 2f + jnc 2f movl $1, CNAME(want_resched) lock incl CNAME(want_resched_cnt) diff --git a/sys/i386/isa/apic_vector.s b/sys/i386/isa/apic_vector.s index 17f894204dd9..10c412fa61e3 100644 --- a/sys/i386/isa/apic_vector.s +++ b/sys/i386/isa/apic_vector.s @@ -1,6 +1,6 @@ /* * 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 lock btrl %eax, CNAME(resched_cpus) - jz 2f + jnc 2f movl $1, CNAME(want_resched) lock incl CNAME(want_resched_cnt)