In article <d6b24e90-7fea-6783-a733-e9d95ed44...@gmx.co.uk>, Nick Hudson <nick.hud...@gmx.co.uk> wrote: >On 22/01/2021 04:48, Christos Zoulas wrote: >> +#if _QUAD_HIGHWORD >> + bus_space_write_4(iot, ioh, offset, (uint32_t)(value & 0xffffffff)); >> + bus_space_write_4(iot, ioh, offset + 4, (uint32_t)(value >> 32)); >> +#else >> + bus_space_write_4(iot, ioh, offset, (uint32_t)(value >> 32)); >> + bus_space_write_4(iot, ioh, offset + 4, (uint32_t)(value & 0xffffffff)); >> +#endif >> +} >> +#endif /* !_LP64 */ > > >BUS_ADDR_{HI,LO}32 are also available for your convenience.
Will use those thanks! christos