mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-03 09:12:57 +00:00
parent
4009619206
commit
42f51cd802
@ -93,10 +93,25 @@ namespace Kernel
|
|||||||
*/
|
*/
|
||||||
static Pd * core()
|
static Pd * core()
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Core protection-domain
|
||||||
|
*/
|
||||||
|
class Core_pd : public Pd
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*/
|
||||||
|
Core_pd(Tlb * const tlb, Platform_pd * const platform_pd)
|
||||||
|
:
|
||||||
|
Pd(tlb, platform_pd)
|
||||||
|
{ }
|
||||||
|
};
|
||||||
constexpr int tlb_align = 1 << Core_tlb::ALIGNM_LOG2;
|
constexpr int tlb_align = 1 << Core_tlb::ALIGNM_LOG2;
|
||||||
Core_tlb *core_tlb = unmanaged_singleton<Core_tlb, tlb_align>();
|
Core_tlb * core_tlb = unmanaged_singleton<Core_tlb, tlb_align>();
|
||||||
Pd *pd = unmanaged_singleton<Pd>(core_tlb, nullptr);
|
Core_pd * core_pd = unmanaged_singleton<Core_pd>(core_tlb, nullptr);
|
||||||
return pd;
|
return core_pd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user