MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / SIDisablePolling

Function SIDisablePolling

src/dolphin/src/si/SIBios.c:486–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486u32 SIDisablePolling(u32 poll)
487{
488 BOOL enabled;
489
490 if (poll == 0)
491 {
492 return Si.poll;
493 }
494
495 enabled = OSDisableInterrupts();
496
497 poll >>= (31 - 7);
498 poll &= 0xf0;
499
500 poll = Si.poll & ~poll;
501
502 __SIRegs[12] = poll;
503 Si.poll = poll;
504
505 OSRestoreInterrupts(enabled);
506 return poll;
507}
508
509static BOOL SIGetResponseRaw(s32 chan)
510{

Callers 3

Pad.cFile · 0.85
PADResetFunction · 0.85
PADRecalibrateFunction · 0.85

Calls 1

OSDisableInterruptsFunction · 0.85

Tested by

no test coverage detected