genode/repos/base-nova/src/core/region_map_support.cc

32 lines
662 B
C++
Raw Normal View History

2011-12-22 16:19:25 +01:00
/*
* \brief Region map implementation
2011-12-22 16:19:25 +01:00
* \author Norman Feske
* \author Sebastian Sumpf
* \date 2009-10-02
*/
/*
* Copyright (C) 2009-2017 Genode Labs GmbH
2011-12-22 16:19:25 +01:00
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
2011-12-22 16:19:25 +01:00
*/
/* core includes */
#include <rm_session_component.h>
using namespace Genode;
2015-09-29 22:03:03 +02:00
/***************
** Rm_client **
***************/
void Rm_client::unmap(addr_t, addr_t virt_base, size_t size)
{
Locked_ptr<Address_space> locked_address_space(_address_space);
2011-12-22 16:19:25 +01:00
if (locked_address_space.valid())
2015-09-29 22:03:03 +02:00
locked_address_space->flush(virt_base, size);
2011-12-22 16:19:25 +01:00
}