Changes between Version 5 and Version 6 of common_utils


Ignore:
Timestamp:
Aug 12, 2014, 1:42:15 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • common_utils

    v5 v6  
    8989 == __4) SpinLock access functions__ ==
    9090
    91 The ''giet_lock_t'' structure is defined in the ''utils.h'' file to have one single lock in a 64 bytes cache line.
     91The ''giet_lock_t'' structure is defined in the ''utils.h'' file to have one single lock in a 64 bytes cache line. It should be aligned on a cache line boundary.
    9292
    9393 === _get_lock( giet_lock_t lock ) ===
     
    9898Releases (or initializes) a lock.
    9999
     100 == __5) TTY0 access functions ==
     101
     102 === void _puts( char* string ) ===
     103Displays a ''string'' on kernel TTY0. This function does NOT take the TTY0 lock.
     104
     105 === void _putx( unsigned int value ) ===
     106Displays 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 ) ===
     109Displays 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 ) ===
     112Displays 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, ... ) ===
     115Display a format on kernel TTY0. To provide an atomic display, this function takes the lock protecting
     116exclusive access to TTY0, entering a critical section until the lock is released.
     117Only 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 ) ===
     126This blocking function uses a polling strategy on the TTY0 status register to get a single character.
     127 
     128 == __6) Task context access functions__ ==
     129
    100130 == __X) Miscelaneous functions__ ==