Last change
on this file since 746 was
709,
checked in by alain, 9 years ago
|
Major release: Change the task model to implement the POSIX threads API.
- The shell "exec" and "kill" commands can be used
to activate/de-activate the applications.
- The "pause", "resume", and "context" commands can be used to stop, restart,
a single thtead or to display the thread context.
This version has been tested on the following multi-threaded applications,
that have been modified to use the POSIX threads:
- classif
- convol
- transpose
- gameoflife
- raycast
|
-
Property svn:executable set to
*
|
File size:
1.4 KB
|
Line | |
---|
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 (or calling thread TTY) |
---|
17 | /////////////////////////////////////////////////////////////////////////////////// |
---|
18 | |
---|
19 | extern void _puts( char* string ); |
---|
20 | |
---|
21 | extern void _putx( unsigned int val ); |
---|
22 | |
---|
23 | extern void _putl( unsigned long long val ); |
---|
24 | |
---|
25 | extern void _putd( unsigned int val ); |
---|
26 | |
---|
27 | extern void _getc( char* byte ); |
---|
28 | |
---|
29 | extern void _printf( char* format, ... ); |
---|
30 | |
---|
31 | extern void _nolock_printf( char* format, ... ); |
---|
32 | |
---|
33 | extern void _user_printf( char* format, ... ); |
---|
34 | |
---|
35 | #endif |
---|
36 | |
---|
37 | // Local Variables: |
---|
38 | // tab-width: 4 |
---|
39 | // c-basic-offset: 4 |
---|
40 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
---|
41 | // indent-tabs-mode: nil |
---|
42 | // End: |
---|
43 | // vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.