Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm Add evbarm_cpu_rootconf callback for hooking...



details:   https://anonhg.NetBSD.org/src/rev/32c77c7e6ee8
branches:  trunk
changeset: 366144:32c77c7e6ee8
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Aug 27 09:52:16 2018 +0000

description:
Add evbarm_cpu_rootconf callback for hooking into cpu_rootconf

diffstat:

 sys/arch/evbarm/evbarm/autoconf.c  |  7 +++++--
 sys/arch/evbarm/include/autoconf.h |  3 ++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diffs (51 lines):

diff -r 7dac83851ec5 -r 32c77c7e6ee8 sys/arch/evbarm/evbarm/autoconf.c
--- a/sys/arch/evbarm/evbarm/autoconf.c Mon Aug 27 09:51:32 2018 +0000
+++ b/sys/arch/evbarm/evbarm/autoconf.c Mon Aug 27 09:52:16 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.21 2017/10/23 07:05:23 skrll Exp $      */
+/*     $NetBSD: autoconf.c,v 1.22 2018/08/27 09:52:16 jmcneill Exp $   */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.21 2017/10/23 07:05:23 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.22 2018/08/27 09:52:16 jmcneill Exp $");
 
 #include "opt_md.h"
 
@@ -49,6 +49,7 @@
 
 void   (*evbarm_device_register)(device_t, void *);
 void   (*evbarm_device_register_post_config)(device_t, void *);
+void   (*evbarm_cpu_rootconf)(void);
 
 extern struct cfdata cfdata[];
 
@@ -148,6 +149,8 @@
 cpu_rootconf(void)
 {
 #ifndef MEMORY_DISK_IS_ROOT
+       if (evbarm_cpu_rootconf)
+               (*evbarm_cpu_rootconf)();
        set_root_device();
 #endif
        aprint_normal("boot device: %s\n",
diff -r 7dac83851ec5 -r 32c77c7e6ee8 sys/arch/evbarm/include/autoconf.h
--- a/sys/arch/evbarm/include/autoconf.h        Mon Aug 27 09:51:32 2018 +0000
+++ b/sys/arch/evbarm/include/autoconf.h        Mon Aug 27 09:52:16 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.h,v 1.8 2014/05/10 20:12:16 reinoud Exp $     */
+/*     $NetBSD: autoconf.h,v 1.9 2018/08/27 09:52:16 jmcneill Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -40,5 +40,6 @@
 
 extern void (*evbarm_device_register)(device_t, void *);
 extern void (*evbarm_device_register_post_config)(device_t, void *);
+extern void (*evbarm_cpu_rootconf)(void);
 
 #endif /* _EVBARM_AUTOCONF_H_ */



Home | Main Index | Thread Index | Old Index