Loading...
Searching...
No Matches
ipc.h
/*
* (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
* Alexander Warg <warg@os.inf.tu-dresden.de>,
* Frank Mehnert <fm3@os.inf.tu-dresden.de>,
* Torsten Frenzel <frenzel@os.inf.tu-dresden.de>
* economic rights: Technische Universität Dresden (Germany)
*
* License: see LICENSE.spdx (in this directory or the directories above)
*/
#ifndef __L4SYS__INCLUDE__ARCH_AMD64__L4API_L4F__IPC_H__
#define __L4SYS__INCLUDE__ARCH_AMD64__L4API_L4F__IPC_H__
#include_next <l4/sys/ipc.h>
L4_INLINE 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
{
l4_umword_t dummy, dummy2;
register l4_umword_t to __asm__("r8") = timeout.raw;
(void)utcb;
__asm__ __volatile__
("syscall"
:
"=d" (dummy2),
"=S" (slabel),
"=D" (dummy),
"=a" (tag.raw)
:
"S" (slabel),
"r" (to),
"a" (tag.raw),
"d" (dest | flags)
:
"memory", "cc", "rcx", "r11", "r15"
);
if (rlabel)
*rlabel = slabel;
return tag;
}
#endif /* ! __L4SYS__INCLUDE__ARCH_AMD64__L4API_L4F__IPC_H__ */
l4_umword_t
unsigned long l4_umword_t
Unsigned machine word.
Definition l4int.h:40
l4_cap_idx_t
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:336
l4_ipc
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
l4_utcb_t
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
Definition utcb.h:56
L4_NOTHROW
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:161
L4_INLINE
#define L4_INLINE
L4 Inline function attribute.
Definition compiler.h:51
l4_msgtag_t
Message tag data structure.
Definition types.h:154
l4_timeout_t
Timeout pair.
Definition __timeout.h:53