Thanks for the response, but that seems to have the same problem. Just no wait, and an infinite loop when testing the opposite condition
The registers are mapped this way:
memregs32 = (volatile uint32_t*)mmap(0, 0x20000, PROT_READ|PROT_WRITE, MAP_SHARED, memfd, 0xC0000000);
Printing out the...