L4Re Operating System Framework
Interface and Usage Documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
__task-arm.h
1/*
2 * (c) 2018 Adam Lackorzynski <adam@l4re.org>
3 *
4 * License: see LICENSE.spdx (in this directory or the directories above)
5 */
6#pragma once
7
8#include <l4/sys/types.h>
9
14l4_task_vgicc_map_u(l4_cap_idx_t task, l4_fpage_t vgicc_fpage,
16
30
31/* IMPLEMENTATION -----------------------------------------------------------*/
32
33#include <l4/sys/ipc.h>
34
36l4_task_vgicc_map_u(l4_cap_idx_t task, l4_fpage_t vgicc_fpage,
38{
39 l4_msg_regs_t *v = l4_utcb_mr_u(u);
41 v->mr[1] = vgicc_fpage.raw;
42 return l4_ipc_call(task, u, l4_msgtag(L4_PROTO_TASK, 2, 0, 0), L4_IPC_NEVER);
43}
44
47{
48 return l4_task_vgicc_map_u(task, vgicc_fpage, l4_utcb());
49}
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:335
l4_msgtag_t l4_ipc_call(l4_cap_idx_t object, l4_utcb_t *utcb, l4_msgtag_t tag, l4_timeout_t timeout) L4_NOTHROW
Object call (usual invocation).
Definition ipc.h:565
l4_msgtag_t l4_msgtag(long label, unsigned words, unsigned items, unsigned flags) L4_NOTHROW
Create a message tag from the specified values.
Definition types.h:404
@ L4_PROTO_TASK
Protocol for messages to a task object.
Definition types.h:52
@ L4_TASK_MAP_VGICC_ARM_OP
Arm: Map virtual GICC area.
Definition task.h:331
l4_msgtag_t l4_task_vgicc_map(l4_cap_idx_t task, l4_fpage_t vgicc_fpage) L4_NOTHROW
Map the GIC virtual CPU interface page to the task in case Fiasco detected a GIC version 2.
Definition __task-arm.h:46
#define L4_IPC_NEVER
never timeout
Definition __timeout.h:76
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
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:159
#define L4_INLINE
L4 Inline function attribute.
Definition compiler.h:51
Common L4 ABI Data Types.
Message tag data structure.
Definition types.h:153
L4 flexpage type.
Definition __l4_fpage.h:76
Encapsulation of the message-register block in the UTCB.
Definition utcb.h:68
l4_umword_t mr[L4_UTCB_GENERIC_DATA_SIZE]
Message registers.
Definition utcb.h:69