2012-05-30 20:13:09 +02:00
|
|
|
/*
|
|
|
|
* \brief Export RAM dataspace as shared memory object (dummy)
|
|
|
|
* \author Martin Stein
|
|
|
|
* \date 2012-02-12
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 21:44:47 +01:00
|
|
|
* Copyright (C) 2012-2013 Genode Labs GmbH
|
2012-05-30 20:13:09 +02:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Genode includes */
|
|
|
|
#include <base/printf.h>
|
2013-11-14 17:29:34 +01:00
|
|
|
|
|
|
|
/* base-hw includes */
|
2014-03-15 01:26:53 +01:00
|
|
|
#include <kernel/core_interface.h>
|
2012-05-30 20:13:09 +02:00
|
|
|
|
|
|
|
/* core includes */
|
|
|
|
#include <ram_session_component.h>
|
|
|
|
|
|
|
|
using namespace Genode;
|
|
|
|
|
|
|
|
|
|
|
|
void Ram_session_component::_export_ram_ds(Dataspace_component *ds) { }
|
|
|
|
|
|
|
|
|
|
|
|
void Ram_session_component::_revoke_ram_ds(Dataspace_component *ds) { }
|
|
|
|
|
|
|
|
|
|
|
|
void Ram_session_component::_clear_ds (Dataspace_component * ds)
|
2013-04-29 18:58:11 +02:00
|
|
|
{
|
|
|
|
memset((void *)ds->phys_addr(), 0, ds->size());
|
|
|
|
|
|
|
|
/* make the new DS-content visible to other PDs */
|
2014-04-07 15:45:44 +02:00
|
|
|
Kernel::update_data_region(ds->phys_addr(), ds->size());
|
2013-04-29 18:58:11 +02:00
|
|
|
}
|
2012-05-30 20:13:09 +02:00
|
|
|
|