Changeset 16 for trunk/kernel/libk


Ignore:
Timestamp:
May 10, 2017, 5:04:01 PM (4 years ago)
Author:
alain
Message:

mprove the HAL for interrupt, exception, syscall handling.

Location:
trunk/kernel/libk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/barrier.c

    r14 r16  
    2424#include <hal_types.h>
    2525#include <hal_remote.h>
     26#include <hal_atomic.h>
    2627#include <barrier.h>
    2728
  • trunk/kernel/libk/barrier.h

    r14 r16  
    3838typedef struct barrier_s
    3939{
    40     volatile uint32_t   current;            // number of arrived threads
    41     volatile uint32_t   sense;              // barrier state (toggle)
    42     uint32_t            pad[(CONFIG_CACHE_LINE_SIZE>>2)-2];
     40    uint32_t   current;            // number of arrived threads
     41    uint32_t   sense;              // barrier state (toggle)
     42    uint32_t   pad[(CONFIG_CACHE_LINE_SIZE>>2)-2];
    4343}
    4444barrier_t;
Note: See TracChangeset for help on using the changeset viewer.