2012-05-30 20:13:09 +02:00
|
|
|
/*
|
|
|
|
* \brief Protection-domain facility
|
|
|
|
* \author Martin Stein
|
2014-04-28 21:31:57 +02:00
|
|
|
* \author Stefan Kalkowski
|
2012-05-30 20:13:09 +02:00
|
|
|
* \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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* core includes */
|
|
|
|
#include <platform_pd.h>
|
|
|
|
|
|
|
|
using namespace Genode;
|
|
|
|
|
2013-08-30 14:15:13 +02:00
|
|
|
Platform_pd::~Platform_pd()
|
|
|
|
{
|
2014-04-28 21:31:57 +02:00
|
|
|
Lock::Guard guard(_lock);
|
|
|
|
|
2013-12-05 16:12:48 +01:00
|
|
|
if (Kernel::bin_pd(_id)) {
|
2013-09-18 13:12:32 +02:00
|
|
|
PERR("failed to destruct protection domain at kernel");
|
|
|
|
}
|
2014-04-28 21:31:57 +02:00
|
|
|
|
|
|
|
_tt->remove_translation(platform()->vm_start(), platform()->vm_size(),
|
|
|
|
_pslab);
|
|
|
|
|
|
|
|
/* TODO: destroy page slab and translation table!!! */
|
2013-08-30 14:15:13 +02:00
|
|
|
}
|
2012-05-30 20:13:09 +02:00
|
|
|
|