Changeset 503 for trunk/kernel
- Timestamp:
- Aug 25, 2018, 6:28:18 PM (6 years ago)
- Location:
- trunk/kernel
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_pic.h
r483 r503 84 84 ****************************************************************************************/ 85 85 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 ); 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) ( void ); 91 typedef void (send_ipi_t) ( cxy_t cxy , lid_t lid ); 92 typedef void (ack_ipi_t) ( void ); 93 typedef void (extend_init_t) ( uint32_t * lapic_base ); 94 94 95 95 typedef struct pic_extend_s -
trunk/kernel/kern/chdev.c
r492 r503 264 264 265 265 // deschedule 266 assert( thread_can_yield( this) , "illegal sched_yield\n" );266 assert( thread_can_yield() , "illegal sched_yield\n" ); 267 267 sched_yield("blocked on I/O"); 268 268 -
trunk/kernel/kern/do_syscall.c
r492 r503 34 34 // This ƒonction should never be called... 35 35 /////////////////////////////////////////////////////////////////////////////////////// 36 static int sys_undefined( )36 static int sys_undefined( void ) 37 37 { 38 38 assert( false , "undefined system call" ); -
trunk/kernel/kern/process.c
r492 r503 65 65 66 66 /////////////////////////// 67 process_t * process_alloc( )67 process_t * process_alloc( void ) 68 68 { 69 69 kmem_req_t req; -
trunk/kernel/kern/process.h
r485 r503 176 176 * @ returns pointer on process descriptor if success / return NULL if failure 177 177 ********************************************************************************************/ 178 process_t * process_alloc( );178 process_t * process_alloc( void ); 179 179 180 180 /********************************************************************************************* -
trunk/kernel/kern/rpc.c
r492 r503 83 83 84 84 ////////////////////////////////////////////// 85 void __attribute__((noinline)) rpc_undefined( )85 void __attribute__((noinline)) rpc_undefined( xptr_t xp __attribute__ ((unused)) ) 86 86 { 87 87 assert( false , "called in cluster %x", local_cxy ); … … 459 459 460 460 // RPC thread deschedules 461 assert( thread_can_yield( server_ptr) , "illegal sched_yield\n" );461 assert( thread_can_yield() , "illegal sched_yield\n" ); 462 462 sched_yield("RPC fifo empty"); 463 463 } -
trunk/kernel/kern/rpc.h
r485 r503 176 176 * This function is executed in case of illegal RPC index. 177 177 **********************************************************************************/ 178 void __attribute__((noinline)) rpc_undefined( );178 void __attribute__((noinline)) rpc_undefined( xptr_t xp __attribute__ ((unused)) ); 179 179 180 180 -
trunk/kernel/kern/thread.c
r492 r503 889 889 890 890 //////////////////////////////// 891 inline bool_t thread_can_yield( )891 inline bool_t thread_can_yield( void ) 892 892 { 893 893 thread_t * this = CURRENT_THREAD; -
trunk/kernel/kern/thread.h
r485 r503 369 369 * @ returns true if no locks taken. 370 370 **************************************************************************************/ 371 inline bool_t thread_can_yield( );371 inline bool_t thread_can_yield( void ); 372 372 373 373 /*************************************************************************************** -
trunk/kernel/mm/mapper.h
r457 r503 105 105 * @ return pointer on created mapper if success / return NULL if no memory 106 106 ******************************************************************************************/ 107 mapper_t * mapper_create( );107 mapper_t * mapper_create( void ); 108 108 109 109 /******************************************************************************************* -
trunk/kernel/mm/vseg.c
r492 r503 60 60 61 61 ///////////////////// 62 vseg_t * vseg_alloc( )62 vseg_t * vseg_alloc( void ) 63 63 { 64 64 kmem_req_t req; -
trunk/kernel/mm/vseg.h
r473 r503 102 102 * @ return pointer on allocated vseg descriptor if success / return NULL if failure. 103 103 ******************************************************************************************/ 104 vseg_t * vseg_alloc( );104 vseg_t * vseg_alloc( void ); 105 105 106 106 /*******************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.