From 31024872ed5c77adeca85da46f9cd925c87e0a97 Mon Sep 17 00:00:00 2001 From: fvdl Date: Sun, 11 May 2003 15:46:57 +0000 Subject: [PATCH] Reselect the ioapic register for each read or write. --- sys/arch/amd64/include/i82093reg.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/arch/amd64/include/i82093reg.h b/sys/arch/amd64/include/i82093reg.h index 0e922bb55983..664f5c054ebc 100644 --- a/sys/arch/amd64/include/i82093reg.h +++ b/sys/arch/amd64/include/i82093reg.h @@ -1,4 +1,4 @@ -/* $NetBSD: i82093reg.h,v 1.2 2003/05/04 23:46:41 fvdl Exp $ */ +/* $NetBSD: i82093reg.h,v 1.3 2003/05/11 15:46:57 fvdl Exp $ */ #include @@ -52,11 +52,12 @@ movl IS_PIN(%r14),%esi ;\ leaq 0x10(%rsi,%rsi,1),%rsi ;\ movq IOAPIC_SC_REG(%rdi),%r15 ;\ + movq IOAPIC_SC_DATA(%rdi),%r13 ;\ movl %esi, (%r15) ;\ - movq IOAPIC_SC_DATA(%rdi),%r15 ;\ - movl (%r15),%esi ;\ - andl $~IOAPIC_REDLO_MASK,%esi ;\ + movl (%r13),%r12d ;\ + andl $~IOAPIC_REDLO_MASK,%r12d ;\ movl %esi,(%r15) ;\ + movl %r12d,(%r13) ;\ ioapic_asm_unlock(num) ;\ 79: