[rsp] Introduce microcode build process, disassemble and build both rspboot versions (#2764)

* [rsp] Introduce microcode build process, disassemble and build both rspboot versions

* Suggested changes

* Check-in tool for generating armips.cpp from upstream sources, regen armips.cpp against a newer commit

* License armips_gen.py, add notice that armips.cpp is automatically generated

* Qualify comment with X105

* Clarify the assumed purpose of rspboot releasing SP_SEMAPHORE
This commit is contained in:
Tharo
2026-08-02 15:27:33 +01:00
committed by GitHub
parent 32b88f90a8
commit da4a1f661c
14 changed files with 21657 additions and 22 deletions
+10
View File
@@ -28,6 +28,14 @@
#define OS_YIELD_DATA_SIZE 0xC00
#ifdef _LANGUAGE_ASSEMBLY
#include "sptaskoff.h"
#endif
#ifdef _LANGUAGE_C
#include "ultratypes.h"
typedef struct OSTask_t {
/* 0x00 */ u32 type;
/* 0x04 */ u32 flags;
@@ -66,3 +74,5 @@ typedef u32 OSYieldResult;
osSpTaskStartGo(p);
#endif
#endif
+23
View File
@@ -0,0 +1,23 @@
#ifndef ULTRA64_SPTASKOFF_H
#define ULTRA64_SPTASKOFF_H
#define OS_TASK_SIZE 0x40 /* sizeof(OSTask) */
#define OS_TASK_OFF_TYPE 0x00
#define OS_TASK_OFF_FLAGS 0x04
#define OS_TASK_OFF_UBOOT 0x08
#define OS_TASK_OFF_UBOOT_SZ 0x0C
#define OS_TASK_OFF_UCODE 0x10
#define OS_TASK_OFF_UCODE_SZ 0x14
#define OS_TASK_OFF_UDATA 0x18
#define OS_TASK_OFF_UDATA_SZ 0x1C
#define OS_TASK_OFF_STACK 0x20
#define OS_TASK_OFF_STACK_SZ 0x24
#define OS_TASK_OFF_OUTBUFF 0x28
#define OS_TASK_OFF_OUTBUFF_SZ 0x2C
#define OS_TASK_OFF_DATA 0x30
#define OS_TASK_OFF_DATA_SZ 0x34
#define OS_TASK_OFF_YIELD 0x38
#define OS_TASK_OFF_YIELD_SZ 0x3C
#endif