source: soft/giet_vm/giet_common/tty0.h @ 456

Last change on this file since 456 was 455, checked in by alain, 10 years ago

Introducing the tty0.c/tty0.h files defining access function to TTY0 (including the _printf().
Introducing the locks.c/locks.h files defining two types of spin-lock (with and without a waiting queue).

  • Property svn:executable set to *
File size: 1.3 KB
RevLine 
[455]1///////////////////////////////////////////////////////////////////////////////////
2// File     : tty0.h
3// Date     : 02/12/2014
4// Author   : alain greiner
5// Copyright (c) UPMC-LIP6
6///////////////////////////////////////////////////////////////////////////////////
7// The tty0.c and tty0.h files are part of the GIET-VM nano-kernel.
8// They define the functions that can be used by both the boot code
9// and the kernel code to access the TTY0 kernel terminal.
10///////////////////////////////////////////////////////////////////////////////////
11
12#ifndef GIET_TTY0_H
13#define GIET_TTY0_H
14
15///////////////////////////////////////////////////////////////////////////////////
16//       Access functions to kernel terminal TTY0
17///////////////////////////////////////////////////////////////////////////////////
18
19extern void         _puts( char*  string );
20
21extern void         _putx( unsigned int val );
22
23extern void         _putl( unsigned long long val );
24
25extern void         _putd( unsigned int val ); 
26
27extern void         _getc( char* byte );       
28
29extern void         _printf( char* format, ... );
30
31#endif
32
33// Local Variables:
34// tab-width: 4
35// c-basic-offset: 4
36// c-file-offsets:((innamespace . 0)(inline-open . 0))
37// indent-tabs-mode: nil
38// End:
39// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
40
Note: See TracBrowser for help on using the repository browser.