Ignore:
Timestamp:
2013-12-28T17:16:44Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1023bcb
Parents:
f6f22cdb
Message:

code revision
coding style fixes
removal of debugging printouts and other temporary stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/include/arch/atomic.h

    rf6f22cdb r32e8cd1  
    2727 */
    2828
    29 /** @addtogroup abs32le
     29/** @addtogroup sparc32
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef KERN_abs32le_ATOMIC_H_
    36 #define KERN_abs32le_ATOMIC_H_
     35#ifndef KERN_sparc32_ATOMIC_H_
     36#define KERN_sparc32_ATOMIC_H_
    3737
    3838#include <typedefs.h>
     
    4747    REQUIRES(val->count < ATOMIC_COUNT_MAX)
    4848{
    49         /* On real hardware the increment has to be done
    50            as an atomic action. */
    51        
     49        // FIXME TODO
    5250        val->count++;
    5351}
     
    5856    REQUIRES(val->count > ATOMIC_COUNT_MIN)
    5957{
    60         /* On real hardware the decrement has to be done
    61            as an atomic action. */
    62        
     58        // FIXME TODO
    6359        val->count--;
    6460}
     
    6965    REQUIRES(val->count < ATOMIC_COUNT_MAX)
    7066{
    71         /* On real hardware both the storing of the previous
    72            value and the increment have to be done as a single
    73            atomic action. */
     67        // FIXME TODO
    7468       
    7569        atomic_count_t prev = val->count;
     
    8478    REQUIRES(val->count > ATOMIC_COUNT_MIN)
    8579{
    86         /* On real hardware both the storing of the previous
    87            value and the decrement have to be done as a single
    88            atomic action. */
     80        // FIXME TODO
    8981       
    9082        atomic_count_t prev = val->count;
     
    10193    REQUIRES_EXTENT_MUTABLE(val)
    10294{
    103         /* On real hardware the retrieving of the original
    104            value and storing 1 have to be done as a single
    105            atomic action. */
     95        // FIXME TODO
    10696       
    10797        atomic_count_t prev = val->count;
     
    114104    REQUIRES_EXTENT_MUTABLE(val)
    115105{
     106        // FIXME TODO
     107       
    116108        do {
    117109                while (val->count);
Note: See TracChangeset for help on using the changeset viewer.