L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
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 * Frank Mehnert <fm3@os.inf.tu-dresden.de>,
10 * Torsten Frenzel <frenzel@os.inf.tu-dresden.de>
11 * economic rights: Technische Universität Dresden (Germany)
12 *
13 * License: see LICENSE.spdx (in this directory or the directories above)
14 */
15#ifndef __L4SYS__INCLUDE__ARCH_AMD64__L4API_L4F__IPC_H__
16#define __L4SYS__INCLUDE__ARCH_AMD64__L4API_L4F__IPC_H__
17
18#include_next <l4/sys/ipc.h>
19
22 l4_umword_t flags,
23 l4_umword_t slabel,
24 l4_msgtag_t tag,
25 l4_umword_t *rlabel,
27{
28 l4_umword_t dummy, dummy2;
29 register l4_umword_t to __asm__("r8") = timeout.raw;
30
31 (void)utcb;
32
33 __asm__ __volatile__
34 ("syscall"
35 :
36 "=d" (dummy2),
37 "=S" (slabel),
38 "=D" (dummy),
39 "=a" (tag.raw)
40 :
41 "S" (slabel),
42 "r" (to),
43 "a" (tag.raw),
44 "d" (dest | flags)
45 :
46 "memory", "cc", "rcx", "r11", "r15"
47 );
48
49 if (rlabel)
50 *rlabel = slabel;
51
52 return tag;
53}
54
55#endif /* ! __L4SYS__INCLUDE__ARCH_AMD64__L4API_L4F__IPC_H__ */
unsigned long l4_umword_t
Unsigned machine word.
Definition l4int.h:40
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
Timeout pair.
Definition __timeout.h:53