3 * \brief Spinning for x86
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.
11 #ifndef __l4util_spin_h
12 #define __l4util_spin_h
14 #include <l4/sys/compiler.h>
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);
23 /****************************************************************************
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. *
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)