Changes between Version 3 and Version 4 of kernel_tty0


Ignore:
Timestamp:
Dec 5, 2014, 3:29:07 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_tty0

    v3 v4  
    33[[PageOutline]]
    44
    5 The [source:soft/giet_vm/giet_common/utils.c utils.c] and [source:soft/giet_vm/giet_common/utils.h util.h] files define the functions used to access the kernel terminal TTY[0]. The ''_put*'' functions do not take the lock protecting exclusive access. The ''_printf'' function takes the lock protecting exclusive access.
     5The [source:soft/giet_vm/giet_common/tty0.c tty0.c] and [source:soft/giet_vm/giet_common/tty0.h tty0.h] files define the functions used to access the kernel terminal TTY[0]. The ''_put*'' functions do not take the lock protecting exclusive access to TTY0. The ''_printf'' function takes the lock protecting exclusive access to TTY0..
    66
    77They are prefixed by "_" to remind that they can only be executed by a processor in kernel mode.
    88
    9  === void _puts( char* string ) ===
     9 === void '''_puts'''( char* string ) ===
    1010Displays a ''string'' on kernel TTY0. This function does NOT take the TTY0 lock.
    1111
    12  === void _putx( unsigned int value ) ===
     12 === void '''_putx'''( unsigned int value ) ===
    1313Displays a 32 bits word as an hexadecimal string on kernel TTY0. This function does NOT take the TTY0 lock.
    1414
    15 === void _putl( unsigned long long value ) ===
     15=== void '''_putl'''( unsigned long long value ) ===
    1616Displays a 64 bits word as an hexadecimal string on kernel TTY0. This function does NOT take the TTY0 lock.
    1717
    18  === void _putd( unsigned int value ) ===
     18 === void '''_putd'''( unsigned int value ) ===
    1919Displays a 32 bits word as an decimal string on kernel TTY0. This function does NOT take the TTY0 lock.
    2020
    21  === void _getc( char* byte ) ===
     21 === void '''_getc'''( char* byte ) ===
    2222This blocking function uses a polling strategy on the TTY0 status register to get a single character.
     23
     24 === void '''_printf'''( char* format, ... ) ===
     25This function displays a formated string on TTY0, after taking the simple_lock_t to get exclusive access. Only the following formats are supported:
     26 * %s : character string (0 terminated)
     27 * %x : hexadecimal representation for an unsigned int (32 bits)
     28 * %l : hexadecimal representation for an unsigned long long (64 bits)
     29 * %d : decimal representation for a signed int (32 bits)
    2330 
    24