| 100 | == __5) TTY0 access functions == |
| 101 | |
| 102 | === void _puts( char* string ) === |
| 103 | Displays a ''string'' on kernel TTY0. This function does NOT take the TTY0 lock. |
| 104 | |
| 105 | === void _putx( unsigned int value ) === |
| 106 | Displays a 32 bits word as an hexadecimal string on kernel TTY0. This function does NOT take the TTY0 lock. |
| 107 | |
| 108 | === void _putl( unsigned long long value ) === |
| 109 | Displays a 64 bits word as an hexadecimal string on kernel TTY0. This function does NOT take the TTY0 lock. |
| 110 | |
| 111 | === void _putd( unsigned int value ) === |
| 112 | Displays a 32 bits word as an decimal string on kernel TTY0. This function does NOT take the TTY0 lock. |
| 113 | |
| 114 | === void _printf( char* format, ... ) === |
| 115 | Display a format on kernel TTY0. To provide an atomic display, this function takes the lock protecting |
| 116 | exclusive access to TTY0, entering a critical section until the lock is released. |
| 117 | Only a limited number of formats are supported: |
| 118 | * %d : 32 bits signed decimal |
| 119 | * %u : 32 bits unsigned decimal |
| 120 | * %x : 32 bits unsigned hexa |
| 121 | * %l : 64 bits unsigned hexa |
| 122 | * %c : char |
| 123 | * %s : string |
| 124 | |
| 125 | === void _getc( char* byte ) === |
| 126 | This blocking function uses a polling strategy on the TTY0 status register to get a single character. |
| 127 | |
| 128 | == __6) Task context access functions__ == |
| 129 | |