mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
parent
00adca8c47
commit
288c2c50ba
@ -16,6 +16,7 @@
|
||||
|
||||
#include <base/stdint.h>
|
||||
#include <base/output.h>
|
||||
#include <base/exception.h>
|
||||
|
||||
namespace Genode { class Native_capability; }
|
||||
|
||||
@ -24,6 +25,8 @@ class Genode::Native_capability
|
||||
{
|
||||
public:
|
||||
|
||||
struct Reference_count_overflow : Exception { };
|
||||
|
||||
/*
|
||||
* Platform-specific raw information of the capability that is
|
||||
* transferred as-is when the capability is delegated.
|
||||
|
@ -176,7 +176,7 @@ class Genode::Capability_space_tpl
|
||||
Lock::Guard guard(_lock);
|
||||
|
||||
if (data.inc_ref() == 255)
|
||||
error("cap ref count overflow");
|
||||
throw Native_capability::Reference_count_overflow();
|
||||
}
|
||||
|
||||
Rpc_obj_key rpc_obj_key(Data const &data) const
|
||||
|
Loading…
Reference in New Issue
Block a user