From 3aaf4797d0a147eb63980c714f6ac4b6d7fdae07 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 12 Feb 2009 15:56:42 +0000 Subject: 2009-02-12 Joel Sherrill * sapi/include/rtems/config.h, score/include/rtems/score/thread.h, score/src/threadidlebody.c: Change prototype of IDLE thread to consistently return void * and take a uintptr_t argument. --- cpukit/ChangeLog | 6 ++++++ cpukit/sapi/include/rtems/config.h | 2 +- cpukit/score/include/rtems/score/thread.h | 4 ++-- cpukit/score/src/threadidlebody.c | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 6f1f22d908..8c71411cd8 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2009-02-12 Joel Sherrill + + * sapi/include/rtems/config.h, score/include/rtems/score/thread.h, + score/src/threadidlebody.c: Change prototype of IDLE thread to + consistently return void * and take a uintptr_t argument. + 2009-02-11 Joel Sherrill * sapi/src/exinit.c: Eliminate _CPU_Thread_dispatch_pointer and passing diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h index 56a59183b3..7e8ace042f 100644 --- a/cpukit/sapi/include/rtems/config.h +++ b/cpukit/sapi/include/rtems/config.h @@ -128,7 +128,7 @@ typedef struct { /** This element points to the BSP's optional idle task which may override * the default one provided with RTEMS. */ - Thread (*idle_task)( uint32_t ); + Thread (*idle_task)( uintptr_t ); /** This field specifies the size of the IDLE task's stack. If less than or * equal to the minimum stack size, then the IDLE task will have the minimum diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index b9355f0ee1..3eba3bc136 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -770,8 +770,8 @@ bool _Thread_Evaluate_mode( void ); /** * This routine is the body of the system idle thread. */ -Thread _Thread_Idle_body( - uint32_t ignored +void *_Thread_Idle_body( + uintptr_t ignored ); #endif diff --git a/cpukit/score/src/threadidlebody.c b/cpukit/score/src/threadidlebody.c index 22856f7bd1..cea6c226b5 100644 --- a/cpukit/score/src/threadidlebody.c +++ b/cpukit/score/src/threadidlebody.c @@ -45,8 +45,8 @@ */ #if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE) -Thread _Thread_Idle_body( - uint32_t ignored +void *_Thread_Idle_body( + uintptr_t ignored ) { for( ; ; ) ; -- cgit v1.2.3