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

Function DSPInit

src/dolphin/src/dsp/dsp.c:53–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void DSPInit(void)
54{
55 u32 oldInt;
56 u16 reg;
57 __DSP_debug_printf("DSPInit(): Build Date: %s %s\n", "Apr 17 2003", "12:34:16");
58
59 if (__DSP_init_flag == 1)
60 {
61 return;
62 }
63 OSRegisterVersion(__DSPVersion);
64 oldInt = OSDisableInterrupts();
65 __OSSetInterruptHandler(7, __DSPHandler);
66 __OSUnmaskInterrupts(0x1000000);
67 reg = __DSPRegs[5];
68 reg = (reg & ~0xA8) | 0x800;
69 __DSPRegs[5] = reg;
70 reg = __DSPRegs[5];
71 reg = reg & ~0xAC;
72 __DSPRegs[5] = reg;
73 __DSP_tmp_task = 0;
74 __DSP_curr_task = 0;
75 __DSP_last_task = 0;
76 __DSP_first_task = 0;
77 __DSP_init_flag = 1;
78 OSRestoreInterrupts(oldInt);
79}
80
81int DSPCheckInit()
82{

Callers 2

__AXOutInitDSPFunction · 0.85
CARDInitFunction · 0.85

Calls 4

__DSP_debug_printfFunction · 0.85
OSRegisterVersionFunction · 0.85
OSDisableInterruptsFunction · 0.85
__OSUnmaskInterruptsFunction · 0.85

Tested by

no test coverage detected