/** * \internal * \file * \brief L4 IPC System Calls, amd64 * \ingroup api_calls */ /* * (c) 2008-2009 Adam Lackorzynski , * Alexander Warg , * Frank Mehnert , * Torsten Frenzel * economic rights: Technische Universität Dresden (Germany) * * This file is part of TUD:OS and distributed under the terms of the * GNU General Public License 2. * Please see the COPYING-GPL-2 file for details. * * As a special exception, you may use this file as part of a free software * library without restriction. Specifically, if other files instantiate * templates or use macros or inline functions from this file, or you compile * this file and link it with other files to produce an executable, this * file does not by itself cause the resulting executable to be covered by * the GNU General Public License. This exception does not however * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ #ifndef __L4SYS__INCLUDE__ARCH_AMD64__L4API_L4F__IPC_H__ #define __L4SYS__INCLUDE__ARCH_AMD64__L4API_L4F__IPC_H__ #include_next 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__ */