L4Re Operating System Framework
Interface and Usage Documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
spin.h
Go to the documentation of this file.
1
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 * License: see LICENSE.spdx (in this directory or the directories above)
10 */
11#ifndef __l4util_spin_h
12#define __l4util_spin_h
13
14#include <l4/sys/compiler.h>
15
17
18L4_CV void l4_spin(int x,int y);
19L4_CV void l4_spin_vga(int x,int y);
20L4_CV void l4_spin_n_text(int x, int y, int len, const char*s);
21L4_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
38
39#endif
L4 compiler related defines.
#define __END_DECLS
End section with C types and functions.
Definition compiler.h:167
#define L4_CV
Define calling convention.
Definition linkage.h:33
#define __BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:164