L4Re Operating System Framework
Interface and Usage Documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
__vm-arm.h
Go to the documentation of this file.
1// vi:set ft=cpp: -*- Mode: C++ -*-
6/*
7 * (c) 2018 Adam Lackorzynski <adam@l4re.org>
8 *
9 * License: see LICENSE.spdx (in this directory or the directories above)
10 */
11#pragma once
12
13#include <l4/sys/task>
14
15namespace L4 {
16
17class Vm : public Kobject_t<Vm, Task, L4_PROTO_VM>
18{
19public:
30 l4_msgtag_t vgicc_map(l4_fpage_t const vgicc_fpage,
31 l4_utcb_t *utcb = l4_utcb()) noexcept
32 { return l4_task_vgicc_map_u(cap(), vgicc_fpage, utcb); }
33
34protected:
35 Vm();
36
37private:
38 Vm(Vm const &);
39 void operator = (Vm const &);
40};
41
42}
Helper class to create an L4Re interface class that is derived from a single base class.
Definition __typeinfo.h:750
l4_cap_idx_t cap() const noexcept
Return capability selector.
Definition kobject:69
Virtual machine host address space.
Definition __vm-arm.h:18
l4_msgtag_t vgicc_map(l4_fpage_t const vgicc_fpage, l4_utcb_t *utcb=l4_utcb()) noexcept
Map the GIC virtual CPU interface page to the task in case Fiasco detected a GIC version 2.
Definition __vm-arm.h:30
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
Definition utcb.h:56
l4_utcb_t * l4_utcb(void) L4_NOTHROW L4_PURE
Get the UTCB address.
Definition utcb.h:346
L4 low-level kernel interface.
Message tag data structure.
Definition types.h:153
Common task related definitions.
L4 flexpage type.
Definition __l4_fpage.h:76