From fd72624430eedd35360851c5d89b7c1955d80fa9 Mon Sep 17 00:00:00 2001 From: yamt Date: Wed, 13 Aug 2003 12:38:35 +0000 Subject: [PATCH] use correct asm operand indexes. (previously 'GLptr' was used as mask.) this long standing bug seems to be uncovered by my previous change(rev.1.2) on some machines. PR/22457 from Matthias Scheler, and tested by him. --- sys/arch/i386/include/acpi_func.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/i386/include/acpi_func.h b/sys/arch/i386/include/acpi_func.h index f88d0e64ca35..6008147a63b2 100644 --- a/sys/arch/i386/include/acpi_func.h +++ b/sys/arch/i386/include/acpi_func.h @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_func.h,v 1.2 2003/08/09 17:35:43 yamt Exp $ */ +/* $NetBSD: acpi_func.h,v 1.3 2003/08/13 12:38:35 yamt Exp $ */ #include @@ -13,7 +13,7 @@ do { \ __asm __volatile( \ "1: movl (%1),%%eax ;" \ " movl %%eax,%%edx ;" \ - " andl %2,%%edx ;" \ + " andl %3,%%edx ;" \ " btsl $0x1,%%edx ;" \ " adcl $0x0,%%edx ;" \ " lock ;" \ @@ -32,7 +32,7 @@ do { \ int dummy; \ __asm __volatile( \ "1: movl (%1),%%eax ;" \ - " andl %2,%%edx ;" \ + " andl %3,%%edx ;" \ " lock ;" \ " cmpxchgl %%edx,(%1) ;" \ " jnz 1b ;" \