]> Zhao Yanbai Git Server - minix.git/commitdiff
memory: announce presence during startup 17/3017/1
authorLionel Sambuc <lionel@minix3.org>
Sun, 28 Jun 2015 17:31:18 +0000 (17:31 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 29 Jun 2015 10:58:01 +0000 (10:58 +0000)
Change-Id: Id4724c444bdca9f72fca05edb55d7614eb5c8286

minix/drivers/storage/memory/memory.c

index fb5aeaa33297c34feaf722a4e4b38d7c7345f38c..8702c63b7510aa84f3cc151280831f99ae5adb7c 100644 (file)
@@ -128,7 +128,7 @@ static void sef_local_startup()
 /*===========================================================================*
  *                         sef_cb_init_fresh                                *
  *===========================================================================*/
-static int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *UNUSED(info))
+static int sef_cb_init_fresh(int type, sef_init_info_t *UNUSED(info))
 {
 /* Initialize the memory driver. */
   int i;
@@ -163,6 +163,9 @@ static int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *UNUSED(info))
 
   m_vaddrs[MEM_DEV] = (vir_bytes) MAP_FAILED; /* we are not mapping this in. */
 
+  chardriver_announce();
+  blockdriver_announce(type);
+
   return(OK);
 }