memory: announce presence during startup

Change-Id: Id4724c444bdca9f72fca05edb55d7614eb5c8286
This commit is contained in:
Lionel Sambuc 2015-06-28 17:31:18 +00:00 committed by David van Moolenbroek
parent 68afc7715b
commit f837aff6e8

View 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);
}