L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
l4_macros.h
Go to the documentation of this file.
1/*****************************************************************************/
8/*
9 * (c) 2000-2009 Author(s)
10 * economic rights: Technische Universität Dresden (Germany)
11 * This file is part of TUD:OS and distributed under the terms of the
12 * GNU Lesser General Public License 2.1.
13 * Please see the COPYING-LGPL-2.1 file for details.
14 */
15
16/*****************************************************************************/
17
18#pragma once
19
20/*****************************************************************************
21 *** generic macros
22 *****************************************************************************/
23
24/* generate L4 thread id printf string */
25#ifndef l4util_idstr
26# define l4util_idfmt "%lx"
27# define l4util_idfmt_adjust "%04lx"
28# define l4util_idstr(tid) (tid >> L4_CAP_SHIFT)
29#endif
30