1 /*****************************************************************************/ 2 /** 3 * \file 4 * \brief Some useful generic macros, L4f version 5 * 6 * \date 11/12/2002 7 * \author Lars Reuther <reuther@os.inf.tu-dresden.de> */ 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 31