From 5d42c1b7bc038bf9cb2a8acdeb5a93005c9693f8 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 5 Sep 2008 02:00:15 +0000 Subject: Convert to "bool". --- cpukit/score/cpu/arm/cpu.c | 2 +- cpukit/score/cpu/arm/rtems/score/cpu.h | 2 +- cpukit/score/cpu/bfin/cpu.c | 2 +- cpukit/score/cpu/bfin/rtems/score/cpu.h | 2 +- cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h | 8 ++++---- cpukit/score/cpu/powerpc/rtems/score/cpu.h | 2 +- cpukit/score/cpu/sparc/cpu.c | 2 +- cpukit/score/cpu/sparc/rtems/score/cpu.h | 2 +- cpukit/score/cpu/unix/cpu.c | 18 +++++++++--------- cpukit/score/cpu/unix/rtems/score/cpu.h | 16 ++++++++-------- 10 files changed, 28 insertions(+), 28 deletions(-) (limited to 'cpukit/score/cpu') diff --git a/cpukit/score/cpu/arm/cpu.c b/cpukit/score/cpu/arm/cpu.c index 2b00c22656..b46e8a10a0 100644 --- a/cpukit/score/cpu/arm/cpu.c +++ b/cpukit/score/cpu/arm/cpu.c @@ -143,7 +143,7 @@ void _CPU_Context_Initialize( uint32_t size, uint32_t new_level, void *entry_point, - boolean is_fp + bool is_fp ) { the_context->register_sp = (uint32_t )stack_base + size ; diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h index d6a8920aae..d3b3ef3838 100644 --- a/cpukit/score/cpu/arm/rtems/score/cpu.h +++ b/cpukit/score/cpu/arm/rtems/score/cpu.h @@ -605,7 +605,7 @@ void _CPU_Context_Initialize( uint32_t size, uint32_t new_level, void *entry_point, - boolean is_fp + bool is_fp ); /* diff --git a/cpukit/score/cpu/bfin/cpu.c b/cpukit/score/cpu/bfin/cpu.c index 607b699ef0..8f90229267 100644 --- a/cpukit/score/cpu/bfin/cpu.c +++ b/cpukit/score/cpu/bfin/cpu.c @@ -198,7 +198,7 @@ void _CPU_Context_Initialize( uint32_t size, uint32_t new_level, void *entry_point, - boolean is_fp + bool is_fp ) { uint32_t stack_high; /* highest "stack aligned" address */ diff --git a/cpukit/score/cpu/bfin/rtems/score/cpu.h b/cpukit/score/cpu/bfin/rtems/score/cpu.h index 4b642ed7eb..65f35c09a2 100644 --- a/cpukit/score/cpu/bfin/rtems/score/cpu.h +++ b/cpukit/score/cpu/bfin/rtems/score/cpu.h @@ -858,7 +858,7 @@ void _CPU_Context_Initialize( uint32_t size, uint32_t new_level, void *entry_point, - boolean is_fp + bool is_fp ); /** diff --git a/cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h b/cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h index 9ead8b95fc..649019fbd9 100644 --- a/cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h @@ -208,10 +208,10 @@ SCORE_EXTERN void *_CPU_Interrupt_stack_high; #ifndef ASM SCORE_EXTERN struct { - uint32_t *Disable_level; - void *Stack; - volatile boolean *Switch_necessary; - boolean *Signal; + uint32_t *Disable_level; + void *Stack; + volatile bool *Switch_necessary; + bool *Signal; } _CPU_IRQ_info CPU_STRUCTURE_ALIGNMENT; diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h index 0c7e016aea..659894da26 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h @@ -530,7 +530,7 @@ void _CPU_Context_Initialize( uint32_t size, uint32_t new_level, void *entry_point, - boolean is_fp + bool is_fp ); /* diff --git a/cpukit/score/cpu/sparc/cpu.c b/cpukit/score/cpu/sparc/cpu.c index 3124e1a8ec..aa1cc8f639 100644 --- a/cpukit/score/cpu/sparc/cpu.c +++ b/cpukit/score/cpu/sparc/cpu.c @@ -276,7 +276,7 @@ void _CPU_Context_Initialize( uint32_t size, uint32_t new_level, void *entry_point, - boolean is_fp + bool is_fp ) { uint32_t stack_high; /* highest "stack aligned" address */ diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h b/cpukit/score/cpu/sparc/rtems/score/cpu.h index 2a4f10b62e..7971bea457 100644 --- a/cpukit/score/cpu/sparc/rtems/score/cpu.h +++ b/cpukit/score/cpu/sparc/rtems/score/cpu.h @@ -769,7 +769,7 @@ void _CPU_Context_Initialize( uint32_t size, uint32_t new_level, void *entry_point, - boolean is_fp + bool is_fp ); /* diff --git a/cpukit/score/cpu/unix/cpu.c b/cpukit/score/cpu/unix/cpu.c index 7427c97c42..25251ae4cf 100644 --- a/cpukit/score/cpu/unix/cpu.c +++ b/cpukit/score/cpu/unix/cpu.c @@ -430,9 +430,9 @@ void *_CPU_Thread_Idle_body( uint32_t ignored ) } for (fd = 0; fd < sync_io_nfds; fd++) { - boolean read = FD_ISSET(fd, &readfds); - boolean write = FD_ISSET(fd, &writefds); - boolean except = FD_ISSET(fd, &exceptfds); + bool read = FD_ISSET(fd, &readfds); + bool write = FD_ISSET(fd, &writefds); + bool except = FD_ISSET(fd, &exceptfds); if (_CPU_Sync_io_handlers[fd] && (read || write || except)) _CPU_Sync_io_handlers[fd](fd, read, write, except); @@ -529,7 +529,7 @@ void _CPU_Context_Initialize( uint32_t _size, uint32_t _new_level, void *_entry_point, - boolean _is_fp + bool _is_fp ) { uint32_t *addr; @@ -784,7 +784,7 @@ void _CPU_ISR_Handler(int vector) { extern void _Thread_Dispatch(void); extern uint32_t _Thread_Dispatch_disable_level; - extern boolean _Context_Switch_necessary; + extern bool _Context_Switch_necessary; if (_ISR_Nest_level++ == 0) { /* switch to interrupt stack */ @@ -914,9 +914,9 @@ void _CPU_Fatal_error(uint32_t error) int _CPU_Set_sync_io_handler( int fd, - boolean read, - boolean write, - boolean except, + bool read, + bool write, + bool except, rtems_sync_io_handler handler ) { @@ -1011,7 +1011,7 @@ int _CPU_SHM_Semid; void _CPU_SHM_Init( uint32_t maximum_nodes, - boolean is_master_node, + bool is_master_node, void **shm_address, uint32_t *shm_length ) diff --git a/cpukit/score/cpu/unix/rtems/score/cpu.h b/cpukit/score/cpu/unix/rtems/score/cpu.h index 728137b695..4734539173 100644 --- a/cpukit/score/cpu/unix/rtems/score/cpu.h +++ b/cpukit/score/cpu/unix/rtems/score/cpu.h @@ -771,7 +771,7 @@ extern void _CPU_Context_Initialize( uint32_t _size, uint32_t _new_level, void *_entry_point, - boolean _is_fp + bool _is_fp ); /* end of Context handler macros */ @@ -1028,17 +1028,17 @@ static inline uint32_t CPU_swap_u32( typedef void ( *rtems_sync_io_handler )( int fd, - boolean read, - boolean wrtie, - boolean except + bool read, + bool wrtie, + bool except ); /* returns -1 if fd to large, 0 is successful */ int _CPU_Set_sync_io_handler( int fd, - boolean read, - boolean write, - boolean except, + bool read, + bool write, + bool except, rtems_sync_io_handler handler ); @@ -1059,7 +1059,7 @@ void _CPU_Stop_clock( void ); void _CPU_SHM_Init( uint32_t maximum_nodes, - boolean is_master_node, + bool is_master_node, void **shm_address, uint32_t *shm_length ); -- cgit v1.2.3