Ignore:
Timestamp:
Aug 25, 2018, 6:28:53 PM (3 years ago)
Author:
viala@…
Message:

[hal] Fix protoypes and add headers in hal mips32 implementation.

Fix types mismatch between implementation and interface in .h.
Add header where they were absent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_atomic.c

    r457 r505  
    2323
    2424#include <hal_kernel_types.h>
     25#include <hal_atomic.h>
    2526
    2627////////////////////////////////////
    2728void hal_atomic_and( uint32_t * ptr,
    28                      int32_t    val )
     29                     uint32_t   val )
    2930{
    3031        asm volatile (
     
    4344///////////////////////////////////
    4445void hal_atomic_or( uint32_t * ptr,
    45                     int32_t    val )
     46                    uint32_t   val )
    4647{
    4748        asm volatile (
     
    5960
    6061///////////////////////////////////////
    61 uint32_t hal_atomic_add( void    * ptr,
    62                          int32_t   val )
     62int32_t hal_atomic_add( void     * ptr,
     63                        int32_t   val )
    6364{
    6465        int32_t current;
     
    106107///////////////////////////////////////////
    107108bool_t hal_atomic_test_set( uint32_t * ptr,
    108                             int32_t    val )
     109                            uint32_t   val )
    109110{
    110111        return hal_atomic_cas( ptr , 0 , val );
Note: See TracChangeset for help on using the changeset viewer.