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

Add void type on function that takes no parameters, fix invalid call.

Fix invalid calls to thread_can_yield.

In file included from kern/chdev.c:29:
kern/chdev.c: In function 'chdev_sequencial_server':
kern/chdev.c:329:21: error: too many arguments to function 'thread_can_yield'

assert( thread_can_yield( server ) , "illegal sched_yield\n" );

~

Also fixed signature of mapper_create.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/rpc.c

    r492 r503  
    8383
    8484//////////////////////////////////////////////
    85 void __attribute__((noinline)) rpc_undefined()
     85void __attribute__((noinline)) rpc_undefined( xptr_t xp __attribute__ ((unused)) )
    8686{
    8787        assert( false , "called in cluster %x", local_cxy );
     
    459459
    460460            // RPC thread deschedules
    461             assert( thread_can_yield( server_ptr ) , "illegal sched_yield\n" );
     461            assert( thread_can_yield() , "illegal sched_yield\n" );
    462462            sched_yield("RPC fifo empty");
    463463        }
Note: See TracChangeset for help on using the changeset viewer.