forked from HarbourMasters/Shipwright
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for new ucode loading patterns (HarbourMasters#4038)
- Loading branch information
Showing
4 changed files
with
79 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
#include "global.h" | ||
|
||
//uintptr_t D_8012DBA0 = (uintptr_t)&D_80155F50; | ||
//uintptr_t D_8012DBA4 = (uintptr_t)&D_80157580; | ||
#include "public/bridge/gfxbridge.h" | ||
|
||
UcodeHandlers sDefaultGSPUCodeText = ucode_f3dex2; | ||
// u64* sDefaultGSPUCodeData = gspF3DZEX2_NoN_PosLight_fifoDataStart; | ||
|
||
uintptr_t SysUcode_GetUCodeBoot(void) { | ||
//return &D_80009320; | ||
// return rspbootTextStart; | ||
return (uintptr_t)NULL; | ||
} | ||
|
||
uintptr_t SysUcode_GetUCodeBootSize(void) { | ||
//return (uintptr_t)&D_800093F0 - (uintptr_t)&D_80009320; | ||
size_t SysUcode_GetUCodeBootSize(void) { | ||
// return (ptrdiff_t)((uintptr_t)rspbootTextEnd - (uintptr_t)rspbootTextStart); | ||
return 0; | ||
} | ||
|
||
uintptr_t SysUcode_GetUCode(void) { | ||
//return D_8012DBA0; | ||
uint32_t SysUcode_GetUCode(void) { | ||
return sDefaultGSPUCodeText; | ||
} | ||
|
||
uintptr_t SysUcode_GetUCodeData(void) { | ||
//return D_8012DBA4; | ||
// return sDefaultGSPUCodeData; | ||
return (uintptr_t)NULL; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters