- Timestamp:
- Aug 25, 2018, 6:28:18 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/drivers/ioc_ata.c
r335 r503 54 54 #define ATA_CMD_IDENTIFY 0xEC 55 55 56 static inline uint16_t ata_data_read( )56 static inline uint16_t ata_data_read( void ) 57 57 { 58 58 return in16(PIO_ATA_CBR_BASE + ATA_DATA); … … 74 74 } 75 75 76 static inline int ata_wait( )76 static inline int ata_wait( void ) 77 77 { 78 78 uint8_t status; … … 148 148 } 149 149 150 static void ata_init( )150 static void ata_init( void ) 151 151 { 152 152 uint8_t data[512]; … … 184 184 185 185 static void ioc_ata_cmd(xptr_t th_xp); 186 extern void x86_ioapic_ata0( );186 extern void x86_ioapic_ata0( void ); 187 187 188 188 void ioc_ata_init(chdev_t *chdev) -
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 /******************************************************************************************* -
trunk/user/fft/fft.c
r473 r503 135 135 ///////////////////////////////////////////////////////////////////////////////// 136 136 137 void slave( );138 139 double CheckSum( );137 void slave( unsigned int * tid ); 138 139 double CheckSum( void ); 140 140 141 141 void InitX(double ** x , unsigned int mode); … … 197 197 // launch the parallel execution, and makes the instrumentation. 198 198 /////////////////////////////////////////////////////////////////// 199 void main ()199 void main ( void ) 200 200 { 201 201 unsigned int main_cxy; // main thread cluster … … 608 608 609 609 ///////////////// 610 double CheckSum( )610 double CheckSum( void ) 611 611 { 612 612 unsigned int i , j; -
trunk/user/ksh/ksh.c
r473 r503 822 822 823 823 ///////////////////////// 824 static void interactive( )824 static void interactive( void ) 825 825 { 826 826 char c; // read character … … 1048 1048 1049 1049 ////////// 1050 int main( )1050 int main( void ) 1051 1051 { 1052 1052 unsigned int cxy; // owner cluster identifier for this KSH process
Note: See TracChangeset
for help on using the changeset viewer.