Changeset 503 for trunk/kernel/devices


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/devices/dev_pic.h

    r483 r503  
    8484 ****************************************************************************************/
    8585
    86 typedef void   (bind_irq_t)     ( lid_t lid , struct chdev_s * src_chdev );   
    87 typedef void   (enable_irq_t)   ( lid_t lid , xptr_t src_chdev_xp );   
    88 typedef void   (disable_irq_t)  ( lid_t lid , xptr_t src_chdev_xp );   
    89 typedef void   (enable_timer_t) ( uint32_t period );   
    90 typedef void   (enable_ipi_t)   ( );   
    91 typedef void   (send_ipi_t)     ( cxy_t cxy , lid_t lid ); 
    92 typedef void   (ack_ipi_t)      ( );   
    93 typedef void   (extend_init_t)  ( uint32_t * lapic_base ); 
     86typedef void   (bind_irq_t)     ( lid_t lid , struct chdev_s * src_chdev );
     87typedef void   (enable_irq_t)   ( lid_t lid , xptr_t src_chdev_xp );
     88typedef void   (disable_irq_t)  ( lid_t lid , xptr_t src_chdev_xp );
     89typedef void   (enable_timer_t) ( uint32_t period );
     90typedef void   (enable_ipi_t)   ( void );
     91typedef void   (send_ipi_t)     ( cxy_t cxy , lid_t lid );
     92typedef void   (ack_ipi_t)      ( void );
     93typedef void   (extend_init_t)  ( uint32_t * lapic_base );
    9494 
    9595typedef struct pic_extend_s
Note: See TracChangeset for help on using the changeset viewer.