3 * \brief Spinning for amd64
6 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
7 * Torsten Frenzel <frenzel@os.inf.tu-dresden.de>
8 * economic rights: Technische Universität Dresden (Germany)
9 * This file is part of TUD:OS and distributed under the terms of the
10 * GNU Lesser General Public License 2.1.
11 * Please see the COPYING-LGPL-2.1 file for details.
13 #ifndef __l4util_spin_h
14 #define __l4util_spin_h
16 #include <l4/sys/compiler.h>
20 L4_CV void l4_spin(int x,int y);
21 L4_CV void l4_spin_vga(int x,int y);
22 L4_CV void l4_spin_n_text(int x, int y, int len, const char*s);
23 L4_CV void l4_spin_n_text_vga(int x, int y, int len, const char*s);
25 /****************************************************************************
27 * spin_text() - spinning wheel at the hercules screen. The given text *
28 * must be a text constant, no variables or arrays. Its *
29 * size is determined with the sizeof operator, it's much *
30 * faster than the strlen function. *
31 * spin_text_vga() - same for vga. *
33 ****************************************************************************/
34 #define l4_spin_text(x, y, text) \
35 l4_spin_n_text((x), (y), sizeof(text)-1, "" text)
36 #define l4_spin_text_vga(x, y, text) \
37 l4_spin_n_text_vga((x), (y), sizeof(text)-1, "" text)