INT2_LOCAL0_STATUS
l0stat = bus_space_read_1(iot, ioh, INT2_LOCAL0_STATUS);
while (bus_space_read_1(iot, ioh, INT2_LOCAL0_STATUS) & flag)