From 3c87adba3fe1c912ae0115d12d9d1ced9c3faf5d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 31 Jul 2008 14:55:56 +0000 Subject: 2008-07-31 Joel Sherrill * cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads. --- cpukit/score/cpu/avr/ChangeLog | 4 ++++ cpukit/score/cpu/avr/cpu.c | 2 +- cpukit/score/cpu/avr/rtems/score/cpu.h | 2 +- cpukit/score/cpu/c4x/ChangeLog | 4 ++++ cpukit/score/cpu/c4x/cpu.c | 2 +- cpukit/score/cpu/c4x/rtems/score/cpu.h | 2 +- cpukit/score/cpu/h8300/ChangeLog | 4 ++++ cpukit/score/cpu/h8300/cpu.c | 2 +- cpukit/score/cpu/h8300/rtems/score/cpu.h | 2 +- cpukit/score/cpu/i386/ChangeLog | 4 ++++ cpukit/score/cpu/i386/cpu.c | 3 ++- cpukit/score/cpu/i386/rtems/score/cpu.h | 4 ++-- cpukit/score/cpu/mips/ChangeLog | 4 ++++ cpukit/score/cpu/mips/cpu.c | 2 +- cpukit/score/cpu/mips/rtems/score/cpu.h | 2 +- cpukit/score/cpu/nios2/ChangeLog | 4 ++++ cpukit/score/cpu/nios2/cpu.c | 2 +- cpukit/score/cpu/nios2/rtems/score/cpu.h | 2 +- cpukit/score/cpu/no_cpu/ChangeLog | 4 ++++ cpukit/score/cpu/no_cpu/cpu.c | 2 +- cpukit/score/cpu/no_cpu/rtems/score/cpu.h | 2 +- cpukit/score/cpu/sh/ChangeLog | 4 ++++ cpukit/score/cpu/sh/cpu.c | 2 +- cpukit/score/cpu/sh/rtems/score/cpu.h | 2 +- cpukit/score/cpu/unix/ChangeLog | 4 ++++ cpukit/score/cpu/unix/cpu.c | 2 +- cpukit/score/cpu/unix/rtems/score/cpu.h | 2 +- 27 files changed, 56 insertions(+), 19 deletions(-) (limited to 'cpukit/score') diff --git a/cpukit/score/cpu/avr/ChangeLog b/cpukit/score/cpu/avr/ChangeLog index ab5d0a6981..d496737285 100644 --- a/cpukit/score/cpu/avr/ChangeLog +++ b/cpukit/score/cpu/avr/ChangeLog @@ -1,3 +1,7 @@ +2008-07-31 Joel Sherrill + + * cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads. + 2008-06-05 Joel Sherrill * rtems/score/cpu.h: Add CPU_SIMPLE_VECTORED_INTERRUPTS porting diff --git a/cpukit/score/cpu/avr/cpu.c b/cpukit/score/cpu/avr/cpu.c index 9bcd58472c..a6bfc593d7 100644 --- a/cpukit/score/cpu/avr/cpu.c +++ b/cpukit/score/cpu/avr/cpu.c @@ -173,7 +173,7 @@ void _CPU_Install_interrupt_stack( void ) * XXX document implementation including references if appropriate */ -void _CPU_Thread_Idle_body( void ) +void *_CPU_Thread_Idle_body( uint32_t ignored ) { for( ; ; ) diff --git a/cpukit/score/cpu/avr/rtems/score/cpu.h b/cpukit/score/cpu/avr/rtems/score/cpu.h index d92cfb1c9d..55e96aad68 100644 --- a/cpukit/score/cpu/avr/rtems/score/cpu.h +++ b/cpukit/score/cpu/avr/rtems/score/cpu.h @@ -1001,7 +1001,7 @@ void _CPU_Install_interrupt_stack( void ); * XXX document implementation including references if appropriate */ -void _CPU_Thread_Idle_body( void ); +void *_CPU_Thread_Idle_body( uint32_t ); /* * _CPU_Context_switch diff --git a/cpukit/score/cpu/c4x/ChangeLog b/cpukit/score/cpu/c4x/ChangeLog index ec0d81bc7a..6a0d5d1198 100644 --- a/cpukit/score/cpu/c4x/ChangeLog +++ b/cpukit/score/cpu/c4x/ChangeLog @@ -1,3 +1,7 @@ +2008-07-31 Joel Sherrill + + * cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads. + 2008-06-05 Joel Sherrill * rtems/score/cpu.h: Add CPU_SIMPLE_VECTORED_INTERRUPTS porting diff --git a/cpukit/score/cpu/c4x/cpu.c b/cpukit/score/cpu/c4x/cpu.c index e7f485615c..3a13e6f8fc 100644 --- a/cpukit/score/cpu/c4x/cpu.c +++ b/cpukit/score/cpu/c4x/cpu.c @@ -181,7 +181,7 @@ void _CPU_ISR_install_vector( */ #if (CPU_PROVIDES_IDLE_THREAD_BODY == 1) -void _CPU_Thread_Idle_body( void ) +void *_CPU_Thread_Idle_body( uint32_t ignored ) { for( ; ; ) { diff --git a/cpukit/score/cpu/c4x/rtems/score/cpu.h b/cpukit/score/cpu/c4x/rtems/score/cpu.h index 9d49590f25..d6be49c19a 100644 --- a/cpukit/score/cpu/c4x/rtems/score/cpu.h +++ b/cpukit/score/cpu/c4x/rtems/score/cpu.h @@ -1129,7 +1129,7 @@ void _CPU_ISR_install_vector( */ #if (CPU_PROVIDES_IDLE_THREAD_BODY == 1) -void _CPU_Thread_Idle_body( void ); +void *_CPU_Thread_Idle_body( uint32_t ); #endif /* diff --git a/cpukit/score/cpu/h8300/ChangeLog b/cpukit/score/cpu/h8300/ChangeLog index 5d61ee2840..c2d3a9718a 100644 --- a/cpukit/score/cpu/h8300/ChangeLog +++ b/cpukit/score/cpu/h8300/ChangeLog @@ -1,3 +1,7 @@ +2008-07-31 Joel Sherrill + + * cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads. + 2008-06-05 Joel Sherrill * rtems/score/cpu.h: Add CPU_SIMPLE_VECTORED_INTERRUPTS porting diff --git a/cpukit/score/cpu/h8300/cpu.c b/cpukit/score/cpu/h8300/cpu.c index 9249d2fac4..fe13ff555d 100644 --- a/cpukit/score/cpu/h8300/cpu.c +++ b/cpukit/score/cpu/h8300/cpu.c @@ -159,7 +159,7 @@ void _CPU_Install_interrupt_stack( void ) */ #if 0 -void _CPU_Thread_Idle_body( void ) +void *_CPU_Thread_Idle_body( uint32_t ignored ) { for( ; ; ) diff --git a/cpukit/score/cpu/h8300/rtems/score/cpu.h b/cpukit/score/cpu/h8300/rtems/score/cpu.h index 2957e38608..02fdcea379 100644 --- a/cpukit/score/cpu/h8300/rtems/score/cpu.h +++ b/cpukit/score/cpu/h8300/rtems/score/cpu.h @@ -1056,7 +1056,7 @@ void _CPU_Install_interrupt_stack( void ); * XXX */ -void _CPU_Thread_Idle_body( void ); +void *_CPU_Thread_Idle_body( uint32_t ); /* * _CPU_Context_switch diff --git a/cpukit/score/cpu/i386/ChangeLog b/cpukit/score/cpu/i386/ChangeLog index cfdf110400..99792631e9 100644 --- a/cpukit/score/cpu/i386/ChangeLog +++ b/cpukit/score/cpu/i386/ChangeLog @@ -1,3 +1,7 @@ +2008-07-31 Joel Sherrill + + * cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads. + 2007-12-17 Joel Sherrill * rtems/score/cpu.h: Add _CPU_Context_Get_SP() for stack check utility. diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c index 08f9930271..00cf142bfd 100644 --- a/cpukit/score/cpu/i386/cpu.c +++ b/cpukit/score/cpu/i386/cpu.c @@ -82,11 +82,12 @@ uint32_t _CPU_ISR_Get_level( void ) return level; } -void _CPU_Thread_Idle_body () +void *_CPU_Thread_Idle_body (uint32_t ignored) { while(1){ asm volatile ("hlt"); } + return NULL; } void _defaultExcHandler (CPU_Exception_frame *ctx) diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h b/cpukit/score/cpu/i386/rtems/score/cpu.h index 812b2f569b..cfce510857 100644 --- a/cpukit/score/cpu/i386/rtems/score/cpu.h +++ b/cpukit/score/cpu/i386/rtems/score/cpu.h @@ -6,7 +6,7 @@ * This include file contains information pertaining to the Intel * i386 processor. * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -426,7 +426,7 @@ void _CPU_ISR_install_vector( #if (CPU_PROVIDES_IDLE_THREAD_BODY == TRUE) -void _CPU_Thread_Idle_body( void ); +void *_CPU_Thread_Idle_body( uint32_t ); #endif /* CPU_PROVIDES_IDLE_THREAD_BODY */ diff --git a/cpukit/score/cpu/mips/ChangeLog b/cpukit/score/cpu/mips/ChangeLog index 5689ee26a9..5f3eb374d3 100644 --- a/cpukit/score/cpu/mips/ChangeLog +++ b/cpukit/score/cpu/mips/ChangeLog @@ -1,3 +1,7 @@ +2008-07-31 Joel Sherrill + + * cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads. + 2008-06-05 Joel Sherrill * rtems/score/cpu.h: Add CPU_SIMPLE_VECTORED_INTERRUPTS porting diff --git a/cpukit/score/cpu/mips/cpu.c b/cpukit/score/cpu/mips/cpu.c index 1436f042c4..3e17d00da9 100644 --- a/cpukit/score/cpu/mips/cpu.c +++ b/cpukit/score/cpu/mips/cpu.c @@ -269,7 +269,7 @@ void _CPU_Install_interrupt_stack( void ) * hook with caution. */ -void _CPU_Thread_Idle_body( void ) +void *_CPU_Thread_Idle_body( uint32_t ignored ) { #if (__mips == 3) || (__mips == 32) for( ; ; ) diff --git a/cpukit/score/cpu/mips/rtems/score/cpu.h b/cpukit/score/cpu/mips/rtems/score/cpu.h index 7c676d2a4a..ae2626fea6 100644 --- a/cpukit/score/cpu/mips/rtems/score/cpu.h +++ b/cpukit/score/cpu/mips/rtems/score/cpu.h @@ -1110,7 +1110,7 @@ void _CPU_Install_interrupt_stack( void ); * is TRUE. */ -void _CPU_Thread_Idle_body( void ); +void *_CPU_Thread_Idle_body( uint32_t ); /* * _CPU_Context_switch diff --git a/cpukit/score/cpu/nios2/ChangeLog b/cpukit/score/cpu/nios2/ChangeLog index a652068ea2..50b441de21 100644 --- a/cpukit/score/cpu/nios2/ChangeLog +++ b/cpukit/score/cpu/nios2/ChangeLog @@ -1,3 +1,7 @@ +2008-07-31 Joel Sherrill + + * cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads. + 2008-06-05 Joel Sherrill * rtems/score/cpu.h: Add CPU_SIMPLE_VECTORED_INTERRUPTS porting diff --git a/cpukit/score/cpu/nios2/cpu.c b/cpukit/score/cpu/nios2/cpu.c index 5118e50e38..d46daeaef6 100644 --- a/cpukit/score/cpu/nios2/cpu.c +++ b/cpukit/score/cpu/nios2/cpu.c @@ -172,7 +172,7 @@ void _CPU_Install_interrupt_stack( void ) * XXX document implementation including references if appropriate */ -void _CPU_Thread_Idle_body( void ) +void *_CPU_Thread_Idle_body( uint32_t ignored ) { #if 1 for(;;); diff --git a/cpukit/score/cpu/nios2/rtems/score/cpu.h b/cpukit/score/cpu/nios2/rtems/score/cpu.h index f35f8844ab..6a7d8ac29e 100644 --- a/cpukit/score/cpu/nios2/rtems/score/cpu.h +++ b/cpukit/score/cpu/nios2/rtems/score/cpu.h @@ -1216,7 +1216,7 @@ void _CPU_Install_interrupt_stack( void ); * * XXX document implementation including references if appropriate */ -void _CPU_Thread_Idle_body( void ); +void *_CPU_Thread_Idle_body( uint32_t ); /** * @ingroup CPUContext diff --git a/cpukit/score/cpu/no_cpu/ChangeLog b/cpukit/score/cpu/no_cpu/ChangeLog index c4a42eb055..eac940e19e 100644 --- a/cpukit/score/cpu/no_cpu/ChangeLog +++ b/cpukit/score/cpu/no_cpu/ChangeLog @@ -1,3 +1,7 @@ +2008-07-31 Joel Sherrill + + * cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads. + 2008-06-05 Joel Sherrill * rtems/score/cpu.h: Add CPU_SIMPLE_VECTORED_INTERRUPTS porting diff --git a/cpukit/score/cpu/no_cpu/cpu.c b/cpukit/score/cpu/no_cpu/cpu.c index d42b4b3171..4dbbac4f7e 100644 --- a/cpukit/score/cpu/no_cpu/cpu.c +++ b/cpukit/score/cpu/no_cpu/cpu.c @@ -171,7 +171,7 @@ void _CPU_Install_interrupt_stack( void ) * XXX document implementation including references if appropriate */ -void _CPU_Thread_Idle_body( void ) +void *_CPU_Thread_Idle_body( uint32_t ignored ) { for( ; ; ) diff --git a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h index 73d063aad1..7ead2fdbeb 100644 --- a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h +++ b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h @@ -1151,7 +1151,7 @@ void _CPU_Install_interrupt_stack( void ); * * XXX document implementation including references if appropriate */ -void _CPU_Thread_Idle_body( void ); +void *_CPU_Thread_Idle_body( uint32_t ); /** * @ingroup CPUContext diff --git a/cpukit/score/cpu/sh/ChangeLog b/cpukit/score/cpu/sh/ChangeLog index c884c71720..559a2ebe6e 100644 --- a/cpukit/score/cpu/sh/ChangeLog +++ b/cpukit/score/cpu/sh/ChangeLog @@ -1,3 +1,7 @@ +2008-07-31 Joel Sherrill + + * cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads. + 2008-06-05 Joel Sherrill * rtems/score/cpu.h: Add CPU_SIMPLE_VECTORED_INTERRUPTS porting diff --git a/cpukit/score/cpu/sh/cpu.c b/cpukit/score/cpu/sh/cpu.c index 9c2c48cd06..c582c07a09 100644 --- a/cpukit/score/cpu/sh/cpu.c +++ b/cpukit/score/cpu/sh/cpu.c @@ -206,7 +206,7 @@ void _CPU_ISR_install_vector( */ #if (CPU_PROVIDES_IDLE_THREAD_BODY == TRUE) -void _CPU_Thread_Idle_body( void ) +void *_CPU_Thread_Idle_body( uint32_t ignored ) { for( ; ; ) diff --git a/cpukit/score/cpu/sh/rtems/score/cpu.h b/cpukit/score/cpu/sh/rtems/score/cpu.h index 2294a57c6d..6eb4c4e6dc 100644 --- a/cpukit/score/cpu/sh/rtems/score/cpu.h +++ b/cpukit/score/cpu/sh/rtems/score/cpu.h @@ -874,7 +874,7 @@ void _CPU_Install_interrupt_stack( void ); * is TRUE. */ -void _CPU_Thread_Idle_body( void ); +void *_CPU_Thread_Idle_body( uint32_t ); /* * _CPU_Context_switch diff --git a/cpukit/score/cpu/unix/ChangeLog b/cpukit/score/cpu/unix/ChangeLog index 571f638759..03721017b9 100644 --- a/cpukit/score/cpu/unix/ChangeLog +++ b/cpukit/score/cpu/unix/ChangeLog @@ -1,3 +1,7 @@ +2008-07-31 Joel Sherrill + + * cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads. + 2008-06-05 Joel Sherrill * rtems/score/cpu.h: Add CPU_SIMPLE_VECTORED_INTERRUPTS porting diff --git a/cpukit/score/cpu/unix/cpu.c b/cpukit/score/cpu/unix/cpu.c index d107b0dd71..7427c97c42 100644 --- a/cpukit/score/cpu/unix/cpu.c +++ b/cpukit/score/cpu/unix/cpu.c @@ -389,7 +389,7 @@ void _CPU_Install_interrupt_stack( void ) * CPU cycles which is again similar to low power mode. */ -void _CPU_Thread_Idle_body( void ) +void *_CPU_Thread_Idle_body( uint32_t ignored ) { #if CPU_SYNC_IO extern void _Thread_Dispatch(void); diff --git a/cpukit/score/cpu/unix/rtems/score/cpu.h b/cpukit/score/cpu/unix/rtems/score/cpu.h index 925bc8e5f4..6e4f8fefc6 100644 --- a/cpukit/score/cpu/unix/rtems/score/cpu.h +++ b/cpukit/score/cpu/unix/rtems/score/cpu.h @@ -924,7 +924,7 @@ void _CPU_Install_interrupt_stack( void ); * is TRUE. */ -void _CPU_Thread_Idle_body( void ); +void *_CPU_Thread_Idle_body( uint32_t ); /* * _CPU_Context_switch -- cgit v1.2.3