diff options
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/modules/MBCI/MBCI.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dev/modules/MBCI/MBCI.h b/dev/modules/MBCI/MBCI.h index f2bd7f71..37c18f79 100644 --- a/dev/modules/MBCI/MBCI.h +++ b/dev/modules/MBCI/MBCI.h @@ -99,7 +99,14 @@ typedef UInt32 MBCIAuthKeyType; /// @internal inline BOOL busi_test_mmio(_Input volatile struct IMBCIHost* host, const UInt32 test) { host->MMIOTest = test; - while (host->MMIOTest == test); + UInt16 timeout = 0UL; + + while (host->MMIOTest == test) { + ++timeout; + + if (timeout > 0x1000) + return NO; + } return host->MMIOTest == 0; } |
