Commit Graph

62 Commits

Author SHA1 Message Date
Maschell 9da6038861 Make logic to free buffers easier 2024-04-24 17:37:22 +02:00
Maschell 3cd1487252 Make sure the PayloadLoaderPayload doesn't get overwritten 2024-04-24 17:37:22 +02:00
Maschell da383b0455 Load the CustomRPXLoader into the start of the memory region, don't limit the size 2024-04-24 17:37:22 +02:00
Maschell c031887028 We don't need to make sure the main function is in a certain memory region 2024-04-24 17:37:22 +02:00
Maschell 5ebec5ac3e Add missing import to be compatible with latest wut version 2024-04-24 17:37:22 +02:00
Maschell b1f8d29cee Avoid spamming the logs 2024-04-24 17:37:22 +02:00
Maschell 103e950aef Add missing assert to link.ld to make sure important code doesn't get overwritten 2024-04-24 17:37:22 +02:00
Maschell a0f49dab93 Add CustomRPXLoader to every OSFatal 2023-06-16 17:17:41 +02:00
Maschell 3e42af85fa Fix flushing the correct addresses 2023-06-16 17:05:45 +02:00
Maschell d950ea9432 Improve RPL loading 2023-06-16 17:05:45 +02:00
Maschell cd73d30f7f OSFatal if the relocations fail 2023-06-16 17:05:45 +02:00
Maschell 49c4c267c8 Stop trying to free leaked memory 2023-06-16 17:05:45 +02:00
Maschell 039e177ff9 Update Dockerfile 2023-04-17 13:47:32 +02:00
Maschell 62dbec960f Add verbose logging 2023-04-17 13:47:32 +02:00
Maschell a4f7e16f13 Clean up imports 2023-04-17 13:47:32 +02:00
Maschell ded5168cb8 Update ELFIO version and avoid streams to reduce binary size 2023-01-05 15:10:33 +01:00
Maschell 479c99de8f Add missing imports to the FSA wut branch 2022-09-03 23:58:27 +02:00
Maschell 72901bc7a5 Improve file reading 2022-08-09 16:05:44 +02:00
Maschell d5c54fed78 Use wut 1.1.1 2022-08-08 11:35:29 +02:00
Maschell 2409afa86a Update Dockerfile to use latest wut version 2022-08-01 05:13:09 -07:00
Maschell 2288b67703 Fix loading rpx with ".wut_load_bounds" section 2022-05-13 19:18:46 +02:00
Maschell 187bfdac65 Use a properly aligned buffer for reading files 2022-03-05 22:01:11 +01:00
Maschell db9e908226 Read the payload.rpx with a properly aligned buffer, fix some missing free calls 2022-02-13 13:58:33 +01:00
Maschell 9e96647469 Update .clang-format to update the comment, macro and assignment formatting 2022-02-03 13:55:24 +01:00
Maschell e5ead1af44
Format the code via clang-format (#1) 2022-02-02 19:42:35 +01:00
Maschell 4e29e33931 Move logging into a separate file 2022-01-30 13:53:29 +01:00
Maschell 0847b2e901 Avoid try catch 2022-01-21 18:53:06 +01:00
Maschell 124b73a5fe Various small cleanups and logs 2022-01-21 18:52:58 +01:00
Maschell 0f069ac840 Remove unused imports 2022-01-21 18:52:13 +01:00
Maschell 00fe4bc284 Make sure _start is at the beginning of the .text section. 2022-01-21 18:51:56 +01:00
Maschell 923b43072c Move code to 0x00808000 2022-01-21 18:50:57 +01:00
Maschell fb32aec5b7 Only do logging when built with `make DEBUG=1` 2022-01-21 18:49:29 +01:00
Maschell 98e3c0882b Remove duplicated do_start, return the recturn code from payload.rpx 2021-12-30 16:01:06 +01:00
Maschell 9aa4f34190 Cleanup memory before calling the .rpx 2021-12-30 15:26:23 +01:00
Maschell 9837a8457f Move the code to a different memory location to not interfere with the HBL sd_loader 2021-12-30 15:26:06 +01:00
Maschell 57163d6103 Formatting 2021-09-23 18:30:08 +02:00
Maschell ba389535a9 Code cleanup 2021-09-18 12:10:58 +02:00
Maschell c225cc7f25 Fix R_PPC_REL24 relocations 2021-09-18 12:06:32 +02:00
Maschell 033c9e52d1 Compile with latest wut version 2021-04-14 19:36:39 +02:00
Maschell 0e275257e5 Make sure to not leak any memory 2021-01-01 20:01:28 +01:00
Maschell 21a8f3f378 Fix doProcUi check when there are more than one arg 2021-01-01 20:00:50 +01:00
Maschell 6529ea36f4 Display user selection if no default user is set. 2020-11-26 21:14:37 +01:00
Maschell 4f208ba8a6 Save the current titleId when executing the payload.elf 2020-10-19 00:22:25 +02:00
Maschell 8498757a87 On error, show a splash screen 2020-10-19 00:21:59 +02:00
Maschell e5b03975f1 Fix the maximum size check of the payload.rpx 2020-10-19 00:19:04 +02:00
Maschell f93fc73ace Revert the mainhook on error 2020-10-19 00:16:45 +02:00
Maschell 8b01f5ca75 Don't run the ProcUI setup if payload.rpx failes and the payload.elf was loaded via H&S 2020-10-19 00:15:44 +02:00
Maschell 84e3764447 Fix module loading 2020-10-19 00:12:19 +02:00
Maschell d92144561e Improve logging 2020-08-26 11:38:15 +02:00
Maschell a9ab6078c8 Fix compiler warnings 2020-08-23 13:06:39 +02:00