# HG changeset patch # User asl # Date 1068306162 0 # Node ID 152652dea92e7baba0a4d2c86a26f96fd672b554 # Parent 2f92828821dc880b674edac2ed9c88a4c26ba2e2 * include/hal_io.h: If defined HAL_IO_MACROS_NO_ADDRESS_MUNGING use macros which don't mung the addresses even if the platform is big-endian. Platforms which don't need address munging can just define HAL_IO_MACROS_NO_ADDRESS_MUNGING in plf_io.h . diff --git a/packages/hal/arm/arch/current/ChangeLog b/packages/hal/arm/arch/current/ChangeLog --- a/packages/hal/arm/arch/current/ChangeLog +++ b/packages/hal/arm/arch/current/ChangeLog @@ -1,3 +1,10 @@ +2003-11-05 Roland Caßebohm + + * include/hal_io.h: If defined HAL_IO_MACROS_NO_ADDRESS_MUNGING + use macros which don't mung the addresses even if the platform + is big-endian. Platforms which don't need address munging can + just define HAL_IO_MACROS_NO_ADDRESS_MUNGING in plf_io.h . + 2003-10-23 Thomas Koeller * src/vectors.S: Acknowlege spurious interrupts. diff --git a/packages/hal/arm/arch/current/include/hal_io.h b/packages/hal/arm/arch/current/include/hal_io.h --- a/packages/hal/arm/arch/current/include/hal_io.h +++ b/packages/hal/arm/arch/current/include/hal_io.h @@ -87,8 +87,8 @@ typedef volatile CYG_ADDRWORD HAL_IO_REG // BYTE Register access. // Individual and vectorized access to 8 bit registers. -// Little-endian version -#if (CYG_BYTEORDER == CYG_LSBFIRST) +// Little-endian version or big-endian version that doesn't need address munging +#if (CYG_BYTEORDER == CYG_LSBFIRST) || defined(HAL_IO_MACROS_NO_ADDRESS_MUNGING) #define HAL_READ_UINT8( _register_, _value_ ) \ ((_value_) = *((volatile CYG_BYTE *)(_register_))) @@ -170,8 +170,8 @@ typedef volatile CYG_ADDRWORD HAL_IO_REG // 16 bit access. // Individual and vectorized access to 16 bit registers. -// Little-endian version -#if (CYG_BYTEORDER == CYG_LSBFIRST) +// Little-endian version or big-endian version that doesn't need address munging +#if (CYG_BYTEORDER == CYG_LSBFIRST) || defined(HAL_IO_MACROS_NO_ADDRESS_MUNGING) #define HAL_READ_UINT16( _register_, _value_ ) \ ((_value_) = *((volatile CYG_WORD16 *)(_register_)))