| 29 | static u32 bootThisDol; |
| 30 | |
| 31 | void OSRegisterResetFunction(OSResetFunctionInfo* func) |
| 32 | { |
| 33 | OSResetFunctionInfo* tmp; |
| 34 | OSResetFunctionInfo* iter; |
| 35 | |
| 36 | for (iter = ResetFunctionQueue.first; iter && iter->priority <= func->priority; |
| 37 | iter = iter->next) |
| 38 | ; |
| 39 | |
| 40 | if (iter == NULL) |
| 41 | { |
| 42 | tmp = ResetFunctionQueue.last; |
| 43 | if (tmp == NULL) |
| 44 | { |
| 45 | ResetFunctionQueue.first = func; |
| 46 | } |
| 47 | else |
| 48 | { |
| 49 | tmp->next = func; |
| 50 | } |
| 51 | func->prev = tmp; |
| 52 | func->next = NULL; |
| 53 | ResetFunctionQueue.last = func; |
| 54 | return; |
| 55 | } |
| 56 | |
| 57 | func->next = iter; |
| 58 | tmp = iter->prev; |
| 59 | iter->prev = func; |
| 60 | func->prev = tmp; |
| 61 | if (tmp == NULL) |
| 62 | { |
| 63 | ResetFunctionQueue.first = func; |
| 64 | return; |
| 65 | } |
| 66 | tmp->next = func; |
| 67 | } |
| 68 | |
| 69 | inline BOOL __OSCallResetFunctions(u32 arg0) |
| 70 | { |
no outgoing calls
no test coverage detected