L4Re Operating System Framework
Interface and Usage Documentation
•All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 * License: see LICENSE.spdx (in this directory or the directories above)
12 */
13
14/*****************************************************************************/
15
16#pragma once
17
18/*****************************************************************************
19 *** generic macros
20 *****************************************************************************/
21
22/* generate L4 thread id printf string */
23#ifndef l4util_idstr
24# define l4util_idfmt "%lx"
25# define l4util_idfmt_adjust "%04lx"
26# define l4util_idstr(tid) (tid >> L4_CAP_SHIFT)
27#endif
28