L4Re Operating System Framework – Interface and Usage Documentation
Loading...
Searching...
No Matches
spin.h
Go to the documentation of this file.
1
5/*
6 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
7 * Frank Mehnert <fm3@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
19
20L4_CV void l4_spin(int x,int y);
21L4_CV void l4_spin_vga(int x,int y);
22L4_CV void l4_spin_n_text(int x, int y, int len, const char*s);
23L4_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
40
41#endif
L4 compiler related defines.
#define L4_CV
Define calling convention.
Definition linkage.h:44
#define EXTERN_C_BEGIN
Start section with C types and functions.
Definition compiler.h:192
#define EXTERN_C_END
End section with C types and functions.
Definition compiler.h:193