Rename i8259_stubs -> legacy_stubs. We will want the entries to have the

same name, eg:

	legacy_stubs
		-> Xintr_legacy0, Xrecurse_legacy0, Xresume_legacy0
		-> Xintr_legacy1, Xrecurse_legacy1, Xresume_legacy1
		...
This commit is contained in:
maxv 2018-02-17 18:51:53 +00:00
parent 9779fa67f8
commit 6e7355e588
6 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vector.S,v 1.58 2018/02/09 08:42:26 maxv Exp $ */
/* $NetBSD: vector.S,v 1.59 2018/02/17 18:51:53 maxv Exp $ */
/*
* Copyright (c) 1998, 2007, 2008 The NetBSD Foundation, Inc.
@ -560,8 +560,8 @@ INTRSTUB(x2apic_level,31,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask)
#endif
.type _C_LABEL(i8259_stubs), @object
LABEL(i8259_stubs)
.type _C_LABEL(legacy_stubs), @object
LABEL(legacy_stubs)
.quad _C_LABEL(Xintr_legacy0), _C_LABEL(Xrecurse_legacy0)
.quad _C_LABEL(Xresume_legacy0)
.quad _C_LABEL(Xintr_legacy1), _C_LABEL(Xrecurse_legacy1)
@ -594,7 +594,7 @@ LABEL(i8259_stubs)
.quad _C_LABEL(Xresume_legacy14)
.quad _C_LABEL(Xintr_legacy15), _C_LABEL(Xrecurse_legacy15)
.quad _C_LABEL(Xresume_legacy15)
END(i8259_stubs)
END(legacy_stubs)
#if NIOAPIC > 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vector.S,v 1.74 2018/01/27 18:48:59 maxv Exp $ */
/* $NetBSD: vector.S,v 1.75 2018/02/17 18:51:53 maxv Exp $ */
/*
* Copyright 2002 (c) Wasabi Systems, Inc.
@ -65,7 +65,7 @@
*/
#include <machine/asm.h>
__KERNEL_RCSID(0, "$NetBSD: vector.S,v 1.74 2018/01/27 18:48:59 maxv Exp $");
__KERNEL_RCSID(0, "$NetBSD: vector.S,v 1.75 2018/02/17 18:51:53 maxv Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@ -576,8 +576,8 @@ INTRSTUB(x2apic_level,31,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask)
#endif
.type _C_LABEL(i8259_stubs), @object
LABEL(i8259_stubs)
.type _C_LABEL(legacy_stubs), @object
LABEL(legacy_stubs)
.long _C_LABEL(Xintr_legacy0), _C_LABEL(Xrecurse_legacy0)
.long _C_LABEL(Xresume_legacy0)
.long _C_LABEL(Xintr_legacy1), _C_LABEL(Xrecurse_legacy1)
@ -610,7 +610,7 @@ LABEL(i8259_stubs)
.long _C_LABEL(Xresume_legacy14)
.long _C_LABEL(Xintr_legacy15), _C_LABEL(Xrecurse_legacy15)
.long _C_LABEL(Xresume_legacy15)
END(i8259_stubs)
END(legacy_stubs)
#if NIOAPIC > 0
.type _C_LABEL(ioapic_edge_stubs), @object

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.h,v 1.53 2018/01/04 01:01:59 knakahara Exp $ */
/* $NetBSD: intr.h,v 1.54 2018/02/17 18:51:53 maxv Exp $ */
/*-
* Copyright (c) 1998, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@ -197,7 +197,7 @@ void Xsoftintr(void);
void Xpreemptrecurse(void);
void Xpreemptresume(void);
extern struct intrstub i8259_stubs[];
extern struct intrstub legacy_stubs[];
extern struct intrstub ioapic_edge_stubs[];
extern struct intrstub ioapic_level_stubs[];
extern struct intrstub x2apic_edge_stubs[];

View File

@ -1,4 +1,4 @@
/* $NetBSD: i8259.c,v 1.16 2013/11/06 20:19:03 mrg Exp $ */
/* $NetBSD: i8259.c,v 1.17 2018/02/17 18:51:53 maxv Exp $ */
/*
* Copyright 2002 (c) Wasabi Systems, Inc.
@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: i8259.c,v 1.16 2013/11/06 20:19:03 mrg Exp $");
__KERNEL_RCSID(0, "$NetBSD: i8259.c,v 1.17 2018/02/17 18:51:53 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -116,8 +116,8 @@ struct pic i8259_pic = {
.pic_hwunmask = i8259_hwunmask,
.pic_addroute = i8259_setup,
.pic_delroute = i8259_setup,
.pic_level_stubs = i8259_stubs,
.pic_edge_stubs = i8259_stubs,
.pic_level_stubs = legacy_stubs,
.pic_edge_stubs = legacy_stubs,
};
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.c,v 1.122 2018/01/23 13:57:57 roy Exp $ */
/* $NetBSD: intr.c,v 1.123 2018/02/17 18:51:53 maxv Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@ -133,7 +133,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.122 2018/01/23 13:57:57 roy Exp $");
__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.123 2018/02/17 18:51:53 maxv Exp $");
#include "opt_intrdebug.h"
#include "opt_multiprocessor.h"
@ -280,7 +280,7 @@ intr_default_setup(void)
/* icu vectors */
for (i = 0; i < NUM_LEGACY_IRQS; i++) {
idt_vec_reserve(ICU_OFFSET + i);
idt_vec_set(ICU_OFFSET + i, i8259_stubs[i].ist_entry);
idt_vec_set(ICU_OFFSET + i, legacy_stubs[i].ist_entry);
}
/*

View File

@ -103,7 +103,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pintr.c,v 1.2 2017/12/13 16:30:18 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: pintr.c,v 1.3 2018/02/17 18:51:53 maxv Exp $");
#include "opt_multiprocessor.h"
#include "opt_xen.h"
@ -135,7 +135,7 @@ __KERNEL_RCSID(0, "$NetBSD: pintr.c,v 1.2 2017/12/13 16:30:18 bouyer Exp $");
/* XXX: todo - compat with lapic.c and XEN for x2apic */
bool x2apic_mode __read_mostly = false;
/* for x86/i8259.c */
struct intrstub i8259_stubs[NUM_LEGACY_IRQS] = {{0,0}};
struct intrstub legacy_stubs[NUM_LEGACY_IRQS] = {{0,0}};
/* for x86/ioapic.c */
struct intrstub ioapic_edge_stubs[MAX_INTR_SOURCES] = {{0,0}};
struct intrstub ioapic_level_stubs[MAX_INTR_SOURCES] = {{0,0}};