From: Lionel Sambuc Date: Sun, 28 Jun 2015 17:31:18 +0000 (+0000) Subject: memory: announce presence during startup X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=f837aff6e89118c5b4d6230a32ff940a9ca45454;p=minix.git memory: announce presence during startup Change-Id: Id4724c444bdca9f72fca05edb55d7614eb5c8286 --- diff --git a/minix/drivers/storage/memory/memory.c b/minix/drivers/storage/memory/memory.c index fb5aeaa33..8702c63b7 100644 --- a/minix/drivers/storage/memory/memory.c +++ b/minix/drivers/storage/memory/memory.c @@ -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); }