Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 add prototype declarations
details: https://anonhg.NetBSD.org/src/rev/75c2c60592be
branches: trunk
changeset: 337249:75c2c60592be
user: knakahara <knakahara%NetBSD.org@localhost>
date: Wed Apr 08 05:52:41 2015 +0000
description:
add prototype declarations
diffstat:
sys/arch/x86/x86/intr.c | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diffs (51 lines):
diff -r 0c3bf5412c63 -r 75c2c60592be sys/arch/x86/x86/intr.c
--- a/sys/arch/x86/x86/intr.c Wed Apr 08 05:48:24 2015 +0000
+++ b/sys/arch/x86/x86/intr.c Wed Apr 08 05:52:41 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.77 2014/05/20 03:24:19 ozaki-r Exp $ */
+/* $NetBSD: intr.c,v 1.78 2015/04/08 05:52:41 knakahara 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.77 2014/05/20 03:24:19 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.78 2015/04/08 05:52:41 knakahara Exp $");
#include "opt_intrdebug.h"
#include "opt_multiprocessor.h"
@@ -188,6 +188,8 @@
.pic_lock = __SIMPLELOCK_UNLOCKED,
};
+static void intr_calculatemasks(struct cpu_info *);
+
#if NIOAPIC > 0 || NACPICA > 0
static int intr_scan_bus(int, int, int *);
#if NPCI > 0
@@ -195,6 +197,23 @@
#endif
#endif
+static int intr_allocate_slot_cpu(struct cpu_info *, struct pic *, int, int *);
+static int __noinline intr_allocate_slot(struct pic *, int, int,
+ struct cpu_info **, int *, int *);
+
+static void intr_source_free(struct cpu_info *, int, struct pic *, int);
+
+static void intr_establish_xcall(void *, void *);
+static void intr_disestablish_xcall(void *, void *);
+
+static inline bool redzone_const_or_false(bool);
+static inline int redzone_const_or_zero(int);
+
+static void intr_redistribute_xc_t(void *, void *);
+static void intr_redistribute_xc_s1(void *, void *);
+static void intr_redistribute_xc_s2(void *, void *);
+static bool intr_redistribute(struct cpu_info *);
+
/*
* Fill in default interrupt table (in case of spurious interrupt
* during configuration of kernel), setup interrupt control unit
Home |
Main Index |
Thread Index |
Old Index