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. Nick