6 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
7 * Alexander Warg <warg@os.inf.tu-dresden.de>
8 * economic rights: Technische Universität Dresden (Germany)
10 * This file is part of TUD:OS and distributed under the terms of the
11 * GNU General Public License 2.
12 * Please see the COPYING-GPL-2 file for details.
14 * As a special exception, you may use this file as part of a free software
15 * library without restriction. Specifically, if other files instantiate
16 * templates or use macros or inline functions from this file, or you compile
17 * this file and link it with other files to produce an executable, this
18 * file does not by itself cause the resulting executable to be covered by
19 * the GNU General Public License. This exception does not however
20 * invalidate any other reasons why the executable file might be covered by
21 * the GNU General Public License.
26 #include_next <l4/sys/types.h>
28 #include <l4/sys/l4int.h>
29 #include <l4/sys/compiler.h>
30 #include <l4/sys/consts.h>
32 #include <l4/sys/__l4_fpage.h>
34 #include <l4/sys/__timeout.h>
37 * \brief l4_schedule param word
45 l4_umword_t time_exp :4;
46 l4_umword_t time_man :8;
48 l4_umword_t sched_param;
52 #define L4_INVALID_SCHED_PARAM ((l4_sched_param_t){raw:(l4_umword_t)-1})
55 /* Compute l4_sched_param_struct_t->small argument for
56 l4_thread_schedule(): size_mb is the size of all small address
57 spaces, and nr is the number of the small address space. See
58 Liedtke: ``L4 Pentium implementation'' */
59 //#define L4_SMALL_SPACE(size_mb, nr) ((size_mb >> 2) + nr * (size_mb >> 1))
62 * Some useful operations and test functions for id's and types
65 //L4_INLINE int l4_is_invalid_sched_param (l4_sched_param_t sp);
67 /*-----------------------------------------------------------------------------
69 *---------------------------------------------------------------------------*/
71 L4_INLINE int l4_is_invalid_sched_param(l4_sched_param_t sp)
73 return sp.raw == (l4_umword_t)-1;
78 #endif /* L4_TYPES_H */