diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2022-05-03 23:43:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-04 00:43:09 +0200 |
| commit | 765cfd63e97b4b7ece2ff4d4a65c2b65e1db7501 (patch) | |
| tree | 6f910b68e18767b4d8021a97895b9da32c7ade62 /src/code/code_800E4FE0.c | |
| parent | 912b9168752617c26764b81415dc1caa572fc29b (diff) | |
Name rsp ucodes and surrounding cleanup (#1166)
* Name rsp ucodes and surrounding cleanup
* Fix comments alignment and remove unnecessary & in sys_ucode
* Change capitalization of sys_ucode variables
* Remove unnecessary externs for aspMain
* Improvements to Jpeg_ScheduleDecoderTask
* Split unknown rsp code into a separate file, spacing
Diffstat (limited to 'src/code/code_800E4FE0.c')
| -rw-r--r-- | src/code/code_800E4FE0.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/code/code_800E4FE0.c b/src/code/code_800E4FE0.c index 4d3d8afb4..04c43a2bd 100644 --- a/src/code/code_800E4FE0.c +++ b/src/code/code_800E4FE0.c @@ -35,9 +35,6 @@ AudioTask* func_800E4FE0(void) { return func_800E5000(); } -extern u64 rspAspMainDataStart[]; -extern u64 rspAspMainDataEnd[]; - AudioTask* func_800E5000(void) { static s32 sMaxAbiCmdCnt = 0x80; static AudioTask* sWaitingAudioTask = NULL; @@ -178,12 +175,12 @@ AudioTask* func_800E5000(void) { task = &gAudioContext.currTask->task.t; task->type = M_AUDTASK; task->flags = 0; - task->ucode_boot = D_801120C0; - task->ucode_boot_size = 0x1000; - task->ucode_data_size = ((rspAspMainDataEnd - rspAspMainDataStart) * sizeof(u64)) - 1; - task->ucode = D_801120C0; - task->ucode_data = rspAspMainDataStart; - task->ucode_size = 0x1000; + task->ucode_boot = aspMainTextStart; + task->ucode_boot_size = SP_UCODE_SIZE; + task->ucode_data_size = (size_t)(aspMainDataEnd - aspMainDataStart) * sizeof(u64) - 1; + task->ucode = aspMainTextStart; + task->ucode_data = aspMainDataStart; + task->ucode_size = SP_UCODE_SIZE; task->dram_stack = NULL; task->dram_stack_size = 0; task->output_buff = NULL; |
