Skip to content

Commit

Permalink
Fix intro not happening shiftability issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ethteck committed Nov 6, 2024
1 parent f8c89d2 commit ca9478a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "nu/nusys.h"

// TODO move these somewhere else...
u8 nuYieldBuf[NU_GFX_YIELD_BUF_SIZE];
u8 nuYieldBuf[NU_GFX_YIELD_BUF_SIZE] ALIGNED(16);
OSThread __osThreadSave;
u8 nuBootStack[0x2000] ALIGNED(8);

Expand Down
4 changes: 2 additions & 2 deletions src/os/nusys/nugfxtaskmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ static u64 GfxTaskMgrStack[NU_GFX_TASKMGR_STACK_SIZE / sizeof(u64)] ALIGNED(16);
static OSMesg D_8009E6D0[NU_GFX_TASKMGR_MESGS];

NUScTask nuGfxTask[NU_GFX_TASK_NUM];
u64 D_800DA040[0x400 / sizeof(u64)];
s32 D_800B91D0[NU_GFX_RDP_OUTPUTBUFF_SIZE / sizeof(u32)];
u64 D_800DA040[0x400 / sizeof(u64)] ALIGNED(16);
s32 D_800B91D0[NU_GFX_RDP_OUTPUTBUFF_SIZE / sizeof(u32)] ALIGNED(16);

extern u8 rspbootUcodeBuffer[];

Expand Down
19 changes: 19 additions & 0 deletions src/os/sptask.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,25 @@ static OSTask* _VirtualToPhysicalTask(OSTask* intp) {
void osSpTaskLoad(OSTask *intp) {
OSTask *tp;

#ifdef _DEBUG
if ((intp->t.dram_stack != 0x0) && ((u32)intp->t.dram_stack & 0xf)) {
__osError(ERR_OSSPTASKLOAD_DRAM, 1, intp->t.dram_stack);
return;
}
if ((intp->t.output_buff != 0x0) && ((u32)intp->t.output_buff & 0xf)) {
__osError(ERR_OSSPTASKLOAD_OUT, 1, intp->t.output_buff);
return;
}
if ((intp->t.output_buff_size != 0x0) && ((u32)intp->t.output_buff_size & 0xf)) {
__osError(ERR_OSSPTASKLOAD_OUTSIZE, 1, intp->t.output_buff_size);
return;
}
if ((intp->t.yield_data_ptr != 0x0) && ((u32)intp->t.yield_data_ptr & 0xf)) {
__osError(ERR_OSSPTASKLOAD_YIELD, 1, intp->t.yield_data_ptr);
return;
}
#endif

#if VERSION_IQUE
tp = _VirtualToPhysicalTask(intp);
#else
Expand Down

0 comments on commit ca9478a

Please sign in to comment.