1 /** 2 * \file 3 * \brief Spinning for amd64 4 */ 5 /* 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. 12 */ 13 #ifndef __l4util_spin_h 14 #define __l4util_spin_h 15 16 #include <l4/sys/compiler.h> 17 18 EXTERN_C_BEGIN 19 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); 24 25 /**************************************************************************** 26 * * 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. * 32 * * 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) 38 39 EXTERN_C_END 40 41 #endif 42