Module Name: src
Committed By: maxv
Date: Sun Oct 16 10:38:49 UTC 2016
Modified Files:
src/sys/arch/i386/i386: vector.S
Log Message:
Use offsets to access the TPR, and not lapic_tpr.
For the record: I'm not sure exactly why it was originally done this way,
and the cvs logs are not quite enlightening. It might have been a way to
speed up the asm access, but it would sound a little bizarre since there
are many more legitimate reasons to do it on the EOI register instead.
To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/arch/i386/i386/vector.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/i386/vector.S
diff -u src/sys/arch/i386/i386/vector.S:1.65 src/sys/arch/i386/i386/vector.S:1.66
--- src/sys/arch/i386/i386/vector.S:1.65 Sun Aug 7 10:17:32 2016
+++ src/sys/arch/i386/i386/vector.S Sun Oct 16 10:38:49 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: vector.S,v 1.65 2016/08/07 10:17:32 maxv Exp $ */
+/* $NetBSD: vector.S,v 1.66 2016/10/16 10:38:49 maxv Exp $ */
/*
* Copyright 2002 (c) Wasabi Systems, Inc.
@@ -65,7 +65,7 @@
*/
#include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: vector.S,v 1.65 2016/08/07 10:17:32 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vector.S,v 1.66 2016/10/16 10:38:49 maxv Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -201,12 +201,12 @@ IDTVEC(intrddbipi)
movzwl (%eax),%eax
GET_TSS
pushl %eax
- movl $0xff,_C_LABEL(lapic_tpr)
+ movl $0xff,_C_LABEL(local_apic)+LAPIC_TPRI
movl $0,_C_LABEL(local_apic)+LAPIC_EOI
sti
call _C_LABEL(ddb_ipi_tss)
addl $4,%esp
- movl $0,_C_LABEL(lapic_tpr)
+ movl $0,_C_LABEL(local_apic)+LAPIC_TPRI
iret
jmp 1b
IDTVEC_END(intrddbipi)