]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4util/include/ARCH-x86/spin.h
Inital import
[l4.git] / l4 / pkg / l4util / include / ARCH-x86 / spin.h
1 /**
2  * \file
3  * \brief Spinning for x86
4  */
5 /*
6  * (c) 2008-2009 Technische Universität Dresden
7  * This file is part of TUD:OS and distributed under the terms of the
8  * GNU Lesser General Public License 2.1.
9  * Please see the COPYING-LGPL-2.1 file for details.
10  */
11 #ifndef __l4util_spin_h
12 #define __l4util_spin_h
13
14 #include <l4/sys/compiler.h>
15
16 EXTERN_C_BEGIN
17
18 L4_CV void l4_spin(int x,int y);
19 L4_CV void l4_spin_vga(int x,int y);
20 L4_CV void l4_spin_n_text(int x, int y, int len, const char*s);
21 L4_CV void l4_spin_n_text_vga(int x, int y, int len, const char*s);
22
23 /****************************************************************************
24 *                                                                           *
25 * spin_text()     - spinning wheel at the hercules screen. The given text   *
26 *                   must be a text constant, no variables or arrays. Its    *
27 *                   size is determined with the sizeof operator, it's much  *
28 *                   faster than the strlen function.                        *
29 * spin_text_vga() - same for vga.                                           *
30 *                                                                           *
31 ****************************************************************************/
32 #define l4_spin_text(x, y, text) \
33         l4_spin_n_text((x), (y), sizeof(text)-1, "" text)
34 #define l4_spin_text_vga(x, y, text) \
35         l4_spin_n_text_vga((x), (y), sizeof(text)-1, "" text)
36
37 EXTERN_C_END
38
39 #endif