From f6c6bc8f95347f41ca801d6fa6551de2656dce71 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 14 Aug 2003 13:17:53 +0000 Subject: 2003-08-14 Joel Sherrill PR 455/bsps * rtems/score/cpu.h: Added missing CPU_swap_u16(). --- cpukit/score/cpu/h8300/ChangeLog | 5 +++++ cpukit/score/cpu/h8300/rtems/score/cpu.h | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'cpukit/score') diff --git a/cpukit/score/cpu/h8300/ChangeLog b/cpukit/score/cpu/h8300/ChangeLog index 7843f5fc36..e0b81eda3b 100644 --- a/cpukit/score/cpu/h8300/ChangeLog +++ b/cpukit/score/cpu/h8300/ChangeLog @@ -1,3 +1,8 @@ +2003-08-14 Joel Sherrill + + PR 455/bsps + * rtems/score/cpu.h: Added missing CPU_swap_u16(). + 2003-08-11 Ralf Corsepius * configure.ac: Use rtems-bugs@rtems.com as bug report email address. diff --git a/cpukit/score/cpu/h8300/rtems/score/cpu.h b/cpukit/score/cpu/h8300/rtems/score/cpu.h index bb861ef2db..0fbf56c72e 100644 --- a/cpukit/score/cpu/h8300/rtems/score/cpu.h +++ b/cpukit/score/cpu/h8300/rtems/score/cpu.h @@ -1162,7 +1162,7 @@ void _CPU_Context_restore_fp( * * H8300 Specific Information: * - * XXX + * This is the generic implementation. */ static inline unsigned32 CPU_swap_u32( @@ -1180,6 +1180,9 @@ static inline unsigned32 CPU_swap_u32( return( swapped ); } +#define CPU_swap_u16( value ) \ + (((value&0xff) << 8) | ((value >> 8)&0xff)) + /* to be provided by the BSP */ extern void H8BD_Install_IRQ( unsigned32 vector, -- cgit v1.2.3