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

Function ETHSendAsync

src/dolphin/src/eth/eth.c:735–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733}
734
735void ETHSendAsync(void* addr, s32 length, void (*callback2)(u8)) {
736 BOOL disabled;
737
738 //ASSERTLINE(985, !__sendbusy);
739 //ASSERTLINE(986, ((u32) addr % 32) == 0);
740 DCStoreRange(addr, length);
741
742 disabled = OSDisableInterrupts();
743 __sendbusy = TRUE;
744 __sendadr = addr;
745 __sendlen = length < 60 ? 60 : length;
746 __sendcallback = callback2;
747 sendUpdate = TRUE;
748
749 if (lock()) {
750 unlock();
751 }
752
753 OSRestoreInterrupts(disabled);
754}
755
756static void sendsub0(void) {
757 u32 etcmd;

Callers 1

__ETHPostSendFunction · 0.85

Calls 3

OSDisableInterruptsFunction · 0.85
lockFunction · 0.85
unlockFunction · 0.85

Tested by

no test coverage detected