Changeset 9a2d6e1 in mainline for generic/src/syscall/syscall.c


Ignore:
Timestamp:
2006-03-15T18:58:26Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
649799a
Parents:
9e1c942
Message:

Redefine semantics of unary atomic operations.
Add test to verify that an architecture understands the semantics correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/syscall/syscall.c

    r9e1c942 r9a2d6e1  
    125125static int check_call_limit(void)
    126126{
    127         if (atomic_inc_post(&TASK->active_calls) > IPC_MAX_ASYNC_CALLS) {
     127        if (atomic_preinc(&TASK->active_calls) > IPC_MAX_ASYNC_CALLS) {
    128128                atomic_dec(&TASK->active_calls);
    129129                return -1;
Note: See TracChangeset for help on using the changeset viewer.