| @@ -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 ; \ |
18 | 76: \ | | 18 | 76: \ |
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 ; \ |
22 | 77: \ | | 22 | 77: \ |
23 | pause ; \ | | 23 | pause ; \ |
24 | nop ; \ | | 24 | nop ; \ |
25 | nop ; \ | | 25 | nop ; \ |