summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorroger <roger@FreeBSD.org>2000-09-11 10:37:27 +0000
committerroger <roger@FreeBSD.org>2000-09-11 10:37:27 +0000
commit2d1297fbf3abcdc4ea65760f251db7db48b2177c (patch)
treee55192c61e8d6e83ae2fbac84048791123b41101 /sys
parentf3696ea83a060923a36feba21576aa8421741b41 (diff)
downloadFreeBSD-src-2d1297fbf3abcdc4ea65760f251db7db48b2177c.zip
FreeBSD-src-2d1297fbf3abcdc4ea65760f251db7db48b2177c.tar.gz
Change to SI_ORDER_FIRST to make sure this module runs before
the bktr module if both are loaded at the same time (eg in the boot loader)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/bktr/bktr_mem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/bktr/bktr_mem.c b/sys/dev/bktr/bktr_mem.c
index 11769ae..5e2c8e8 100644
--- a/sys/dev/bktr/bktr_mem.c
+++ b/sys/dev/bktr/bktr_mem.c
@@ -169,5 +169,6 @@ static moduledata_t bktr_mem_mod = {
bktr_mem_modevent,
0
};
-DECLARE_MODULE(bktr_mem, bktr_mem_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);
+/* The load order is First so bktr_mem loads (and initialises) before bktr */
+DECLARE_MODULE(bktr_mem, bktr_mem_mod, SI_SUB_PSEUDO, SI_ORDER_FIRST);
MODULE_VERSION(bktr_mem, 1);
OpenPOWER on IntegriCloud