Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys fix interrupt_* stubs. reported by skrll@n.o



details:   https://anonhg.NetBSD.org/src/rev/48f331e36456
branches:  trunk
changeset: 340221:48f331e36456
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Fri Aug 28 07:18:39 2015 +0000

description:
fix interrupt_* stubs. reported by skrll@n.o

diffstat:

 sys/kern/kern_stub.c |  26 ++++++++++++++++++--------
 sys/sys/systm.h      |   3 ++-
 2 files changed, 20 insertions(+), 9 deletions(-)

diffs (71 lines):

diff -r 70274a2dea24 -r 48f331e36456 sys/kern/kern_stub.c
--- a/sys/kern/kern_stub.c      Fri Aug 28 06:04:43 2015 +0000
+++ b/sys/kern/kern_stub.c      Fri Aug 28 07:18:39 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_stub.c,v 1.41 2015/08/24 22:50:32 pooka Exp $     */
+/*     $NetBSD: kern_stub.c,v 1.42 2015/08/28 07:18:39 knakahara Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_stub.c,v 1.41 2015/08/24 22:50:32 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_stub.c,v 1.42 2015/08/28 07:18:39 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ptrace.h"
@@ -149,12 +149,12 @@
 
 __weak_alias(kobj_renamespace, nullop);
 
-__weak_alias(interrupt_get_count, eopnotsupp);
-__weak_alias(interrupt_get_assigned, eopnotsupp);
-__weak_alias(interrupt_get_available, eopnotsupp);
-__weak_alias(interrupt_get_devname, eopnotsupp);
-__weak_alias(interrupt_construct_intrids, eopnotsupp);
-__weak_alias(interrupt_destruct_intrids, eopnotsupp);
+__weak_alias(interrupt_get_count, nullop);
+__weak_alias(interrupt_get_assigned, voidop);
+__weak_alias(interrupt_get_available, voidop);
+__weak_alias(interrupt_get_devname, voidop);
+__weak_alias(interrupt_construct_intrids, nullret);
+__weak_alias(interrupt_destruct_intrids, voidop);
 __weak_alias(interrupt_distribute, eopnotsupp);
 __weak_alias(interrupt_distribute_handler, eopnotsupp);
 
@@ -286,6 +286,16 @@
        return (0);
 }
 
+/*
+ * Generic null operation, always returns null.
+ */
+void *
+nullret(void)
+{
+
+       return (NULL);
+}
+
 bool
 default_bus_space_handle_is_equal(bus_space_tag_t t,
     bus_space_handle_t h1, bus_space_handle_t h2)
diff -r 70274a2dea24 -r 48f331e36456 sys/sys/systm.h
--- a/sys/sys/systm.h   Fri Aug 28 06:04:43 2015 +0000
+++ b/sys/sys/systm.h   Fri Aug 28 07:18:39 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.267 2015/03/07 16:34:55 christos Exp $     */
+/*     $NetBSD: systm.h,v 1.268 2015/08/28 07:18:40 knakahara Exp $    */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -164,6 +164,7 @@
  */
 void   voidop(void);
 int    nullop(void *);
+void*  nullret(void);
 int    enodev(void);
 int    enosys(void);
 int    enoioctl(void);



Home | Main Index | Thread Index | Old Index