Thu Aug 11 15:45:39 2016 UTC ()
Use absolute addressing mode, just like the rest.


(maxv)
diff -r1.5 -r1.6 src/sys/arch/amd64/include/i82093reg.h

cvs diff -r1.5 -r1.6 src/sys/arch/amd64/include/i82093reg.h (expand / switch to unified diff)

--- src/sys/arch/amd64/include/i82093reg.h 2008/07/03 14:02:25 1.5
+++ src/sys/arch/amd64/include/i82093reg.h 2016/08/11 15:45:39 1.6
@@ -1,25 +1,25 @@ @@ -1,25 +1,25 @@
1/* $NetBSD: i82093reg.h,v 1.5 2008/07/03 14:02:25 drochner Exp $ */ 1/* $NetBSD: i82093reg.h,v 1.6 2016/08/11 15:45:39 maxv Exp $ */
2 2
3#include <x86/i82093reg.h> 3#include <x86/i82093reg.h>
4 4
5#ifdef _KERNEL 5#ifdef _KERNEL
6 6
7#if defined(_KERNEL_OPT) 7#if defined(_KERNEL_OPT)
8#include "opt_multiprocessor.h" 8#include "opt_multiprocessor.h"
9#endif 9#endif
10 10
11#define ioapic_asm_ack(num) \ 11#define ioapic_asm_ack(num) \
12 movl $0,(_C_LABEL(local_apic)+LAPIC_EOI)(%rip) 12 movl $0,_C_LABEL(local_apic)+LAPIC_EOI
13 13
14#ifdef MULTIPROCESSOR 14#ifdef MULTIPROCESSOR
15 15
16#define ioapic_asm_lock(num) \ 16#define ioapic_asm_lock(num) \
17 movb $1,%bl ; \ 17 movb $1,%bl ; \
1876: \ 1876: \
19 xchgb %bl,PIC_LOCK(%rdi) ; \ 19 xchgb %bl,PIC_LOCK(%rdi) ; \
20 testb %bl,%bl ; \ 20 testb %bl,%bl ; \
21 jz 78f ; \ 21 jz 78f ; \
2277: \ 2277: \
23 pause ; \ 23 pause ; \
24 nop ; \ 24 nop ; \
25 nop ; \ 25 nop ; \