2015-05-19 14:18:40 +02:00
|
|
|
/*
|
|
|
|
* \brief Implementation of platform-specific capabilities for core
|
|
|
|
* \author Stefan Kalkowski
|
|
|
|
* \date 2015-05-20
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 13:23:52 +01:00
|
|
|
* Copyright (C) 2015-2017 Genode Labs GmbH
|
2015-05-19 14:18:40 +02:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 13:23:52 +01:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2015-05-19 14:18:40 +02:00
|
|
|
*/
|
|
|
|
|
2016-06-15 15:04:54 +02:00
|
|
|
#include <base/internal/capability_space.h>
|
2015-05-19 14:18:40 +02:00
|
|
|
|
2016-06-15 15:04:54 +02:00
|
|
|
using namespace Genode;
|
|
|
|
|
|
|
|
|
|
|
|
Native_capability::Native_capability() { }
|
|
|
|
|
|
|
|
|
|
|
|
void Native_capability::_inc() { }
|
|
|
|
void Native_capability::_dec() { }
|
|
|
|
|
|
|
|
|
|
|
|
long Native_capability::local_name() const
|
|
|
|
{
|
|
|
|
return (long)_data;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Native_capability::valid() const
|
|
|
|
{
|
|
|
|
return (addr_t)_data != Kernel::cap_id_invalid();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Native_capability::Raw Native_capability::raw() const { return { 0, 0, 0, 0 }; }
|