L4Re Operating System Framework
Interface and Usage Documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ipc.h
1
6/*
7 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
8 * Alexander Warg <warg@os.inf.tu-dresden.de>
9 * economic rights: Technische Universität Dresden (Germany)
10 *
11 * License: see LICENSE.spdx (in this directory or the directories above)
12 */
13#pragma once
14
15#include_next <l4/sys/ipc.h>
16
17#ifdef __GNUC__
18
19#include <l4/sys/compiler.h>
20#include <l4/sys/syscall_defs.h>
21
24 l4_umword_t flags,
25 l4_umword_t slabel,
26 l4_msgtag_t tag,
27 l4_umword_t *rlabel,
29{
30 register l4_umword_t _dest __asm__("r2") = dest | flags;
31 register l4_umword_t _timeout __asm__("r3") = timeout.raw;
32 register l4_mword_t _tag __asm__("r0") = tag.raw;
33 register l4_umword_t _label __asm__("r4") = slabel;
34 (void)utcb;
35
36 __asm__ __volatile__
37 ("mov r5, %[sc] \n"
38 "blx __l4_sys_syscall \n"
39 :
40 "+r" (_dest),
41 "+r" (_timeout),
42 "+r" (_label),
43 "+r" (_tag)
44 :
45 [sc] "i" (L4_SYSCALL_INVOKE)
46 :
47 "cc", "memory", "r5", "ip", "lr");
48
49 if (rlabel)
50 *rlabel = _label;
51 tag.raw = _tag;
52
53 return tag;
54}
55
56#endif //__GNUC__
L4 compiler related defines.
unsigned long l4_umword_t
Unsigned machine word.
Definition l4int.h:40
signed long l4_mword_t
Signed machine word.
Definition l4int.h:37
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:335
l4_msgtag_t l4_ipc(l4_cap_idx_t dest, l4_utcb_t *utcb, l4_umword_t flags, l4_umword_t slabel, l4_msgtag_t tag, l4_umword_t *rlabel, l4_timeout_t timeout) L4_NOTHROW
Generic L4 object invocation.
Definition ipc.h:21
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
Definition utcb.h:56
#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
Message tag data structure.
Definition types.h:153
l4_mword_t raw
raw value
Definition types.h:154
Syscall entry definitions.
Timeout pair.
Definition __timeout.h:53