mirror of
https://github.com/zeldaret/oot
synced 2026-08-10 19:17:19 -04:00
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
This commit is contained in:
@@ -2321,11 +2321,11 @@ _DW({ \
|
||||
gsSPLoadUcodeEx((uc_start), (uc_dstart), SP_UCODE_DATA_SIZE)
|
||||
|
||||
#define gSPLoadUcodeL(pkt, ucode) \
|
||||
gSPLoadUcode((pkt), OS_K0_TO_PHYSICAL(&##ucode##TextStart), \
|
||||
OS_K0_TO_PHYSICAL(&##ucode##DataStart))
|
||||
gSPLoadUcode((pkt), OS_K0_TO_PHYSICAL(& ucode##TextStart), \
|
||||
OS_K0_TO_PHYSICAL(& ucode##DataStart))
|
||||
#define gsSPLoadUcodeL(ucode) \
|
||||
gsSPLoadUcode(OS_K0_TO_PHYSICAL(&##ucode##TextStart), \
|
||||
OS_K0_TO_PHYSICAL(&##ucode##DataStart))
|
||||
gsSPLoadUcode(OS_K0_TO_PHYSICAL(& ucode##TextStart), \
|
||||
OS_K0_TO_PHYSICAL(& ucode##DataStart))
|
||||
#endif
|
||||
|
||||
#ifdef F3DEX_GBI_2
|
||||
|
||||
@@ -351,14 +351,7 @@ typedef struct {
|
||||
/*===========================================================================*
|
||||
* External functions
|
||||
*===========================================================================*/
|
||||
extern u64 gspS2DEX_fifoTextStart[], gspS2DEX_fifoTextEnd[];
|
||||
extern u64 gspS2DEX_fifoDataStart[], gspS2DEX_fifoDataEnd[];
|
||||
extern u64 gspS2DEX_fifo_dTextStart[], gspS2DEX_fifo_dTextEnd[];
|
||||
extern u64 gspS2DEX_fifo_dDataStart[], gspS2DEX_fifo_dDataEnd[];
|
||||
extern u64 gspS2DEX2_fifoTextStart[], gspS2DEX2_fifoTextEnd[];
|
||||
extern u64 gspS2DEX2_fifoDataStart[], gspS2DEX2_fifoDataEnd[];
|
||||
extern u64 gspS2DEX2_xbusTextStart[], gspS2DEX2_xbusTextEnd[];
|
||||
extern u64 gspS2DEX2_xbusDataStart[], gspS2DEX2_xbusDataEnd[];
|
||||
|
||||
extern void guS2DInitBg(uObjBg *);
|
||||
|
||||
#ifdef F3DEX_GBI_2
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
#ifndef ULTRA64_UCODE_H
|
||||
#define ULTRA64_UCODE_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#define SP_DRAM_STACK_SIZE8 (0x400)
|
||||
#define SP_DRAM_STACK_SIZE64 (SP_DRAM_STACK_SIZE8 >> 3)
|
||||
|
||||
#define SP_UCODE_SIZE 0x1000
|
||||
|
||||
#define SP_UCODE_DATA_SIZE 0x800
|
||||
|
||||
extern u64 rspbootTextStart[], rspbootTextEnd[];
|
||||
|
||||
extern u64 aspMainTextStart[], aspMainTextEnd[];
|
||||
extern u64 aspMainDataStart[], aspMainDataEnd[];
|
||||
|
||||
extern u64 gspF3DZEX2_NoN_PosLight_fifoTextStart[], gspF3DZEX2_NoN_PosLight_fifoTextEnd[];
|
||||
extern u64 gspF3DZEX2_NoN_PosLight_fifoDataStart[], gspF3DZEX2_NoN_PosLight_fifoDataEnd[];
|
||||
|
||||
extern u64 gspS2DEX2d_fifoTextStart[], gspS2DEX2d_fifoTextEnd[];
|
||||
extern u64 gspS2DEX2d_fifoDataStart[], gspS2DEX2d_fifoDataEnd[];
|
||||
|
||||
extern u64 njpgdspMainTextStart[], njpgdspMainTextEnd[];
|
||||
extern u64 njpgdspMainDataStart[], njpgdspMainDataEnd[];
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user