mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-23 01:08:55 +00:00
@ -62,7 +62,7 @@ class Core::Platform : public Platform_generic
|
||||
/*
|
||||
* Shortcut for the type of allocator instances for physical resources
|
||||
*/
|
||||
typedef Synced_range_allocator<Allocator_avl> Phys_allocator;
|
||||
using Phys_allocator = Synced_range_allocator<Allocator_avl>;
|
||||
|
||||
Platform_pd *_core_pd = nullptr; /* core protection domain object */
|
||||
Phys_allocator _ram_alloc; /* RAM allocator */
|
||||
|
@ -45,7 +45,7 @@ class Core::Platform_thread : Interface
|
||||
|
||||
enum State { DEAD, RUNNING };
|
||||
|
||||
typedef String<32> Name;
|
||||
using Name = String<32>;
|
||||
|
||||
friend class Platform_pd;
|
||||
|
||||
|
@ -35,7 +35,7 @@ namespace Core {
|
||||
|
||||
enum { MAX_VCPU_IDS = (Platform::VCPU_VIRT_EXT_END -
|
||||
Platform::VCPU_VIRT_EXT_START) / L4_PAGESIZE };
|
||||
typedef Bit_allocator<MAX_VCPU_IDS> Vcpu_id_allocator;
|
||||
using Vcpu_id_allocator = Bit_allocator<MAX_VCPU_IDS>;
|
||||
}
|
||||
|
||||
|
||||
@ -78,8 +78,8 @@ class Core::Vm_session_component
|
||||
{
|
||||
private:
|
||||
|
||||
typedef Constrained_ram_allocator Con_ram_allocator;
|
||||
typedef Allocator_avl_tpl<Rm_region> Avl_region;
|
||||
using Con_ram_allocator = Constrained_ram_allocator;
|
||||
using Avl_region = Allocator_avl_tpl<Rm_region>;
|
||||
|
||||
Rpc_entrypoint &_ep;
|
||||
Con_ram_allocator _constrained_md_ram_alloc;
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
namespace Genode {
|
||||
|
||||
typedef Native_capability::Data Cap_index;
|
||||
using Cap_index = Native_capability::Data;
|
||||
|
||||
class Cap_index_allocator;
|
||||
|
||||
|
@ -585,8 +585,8 @@ struct Foc_vcpu : Thread, Noncopyable
|
||||
using Foc::l4_vm_vmx_read_16;
|
||||
using Foc::l4_vm_vmx_read_32;
|
||||
using Foc::l4_vm_vmx_read_nat;
|
||||
typedef Vcpu_state::Segment Segment;
|
||||
typedef Vcpu_state::Range Range;
|
||||
using Segment = Vcpu_state::Segment;
|
||||
using Range = Vcpu_state::Range;
|
||||
|
||||
{
|
||||
Segment cs { l4_vm_vmx_read_16(vmcs, Vmcs::CS_SEL),
|
||||
@ -754,7 +754,7 @@ struct Foc_vcpu : Thread, Noncopyable
|
||||
vmcb_cr4_shadow = state.cr4.value();
|
||||
}
|
||||
|
||||
typedef Vcpu_state::Segment Segment;
|
||||
using Segment = Vcpu_state::Segment;
|
||||
|
||||
state.cs.charge(Segment{vmcb->state_save_area.cs.selector,
|
||||
vmcb->state_save_area.cs.attrib,
|
||||
@ -796,7 +796,7 @@ struct Foc_vcpu : Thread, Noncopyable
|
||||
vmcb->state_save_area.ldtr.limit,
|
||||
(addr_t)vmcb->state_save_area.ldtr.base});
|
||||
|
||||
typedef Vcpu_state::Range Range;
|
||||
using Range = Vcpu_state::Range;
|
||||
|
||||
state.gdtr.charge(Range{.limit = vmcb->state_save_area.gdtr.limit,
|
||||
.base = (addr_t)vmcb->state_save_area.gdtr.base });
|
||||
|
Reference in New Issue
Block a user