Commit Graph

73 Commits

Author SHA1 Message Date
Maschell
86c1d20863 Remove allocMutex to avoid possible deadlocks 2024-05-03 22:33:18 +02:00
Maschell
bf99541449 Use custom function to check exp heap 2024-04-26 23:42:38 +02:00
Maschell
d76afc5673 Fix compiling with latest wut version 2024-04-25 12:02:28 +02:00
Maschell
0b8bb8668e Bump version to 0.2.6 2024-04-25 12:02:28 +02:00
Maschell
8e53c22f2c Make sure we can execute code on all three cores, check heaps on application end 2024-04-25 12:02:28 +02:00
Maschell
5f249475c3 Allow logging in init hook 2024-04-25 12:02:28 +02:00
Maschell
a46f438db2 Bump version 2023-07-19 19:10:58 +02:00
Maschell
09ca5144dd Update main.cpp 2023-03-28 20:35:30 +02:00
Maschell
f9b2bcd660 Allocate the page table on the heap to avoid a stack overflow 2023-03-27 18:22:05 +02:00
Maschell
f2333e37dc Use the default heap for threads, make sure to memset default heap allocations to 0 after using them 2023-03-26 16:03:34 +02:00
Maschell
6076c8726c Bump version 2023-03-23 14:59:44 +01:00
Maschell
f5267091da Avoid memory for mapping which is used when joining a game via friend list 2023-03-21 23:06:25 +01:00
Maschell
412b38be4c Bump Version 2023-02-19 19:18:44 +01:00
Maschell
d9457e8cdc Implement KiValidateUserDataRange and KiValidateUserCodeRange hook 2023-02-17 08:17:21 +01:00
Maschell
3a8d8a979c Fix KiGetOrPutUserData 2023-02-17 08:17:21 +01:00
Maschell
88de314828 Bump version to 0.2.1 2023-01-10 18:25:43 +01:00
Maschell
69b2ed5905 Use WUMS 0.3.2 2023-01-10 18:25:43 +01:00
Maschell
d3f874ed2e Use latest version of libfunctionpatcher 2023-01-06 16:02:58 +01:00
Maschell
9bf4b02952 Update version to v0.2 2022-10-09 14:32:17 +02:00
Maschell
4da0dd9e3f Log the module version on each application start 2022-10-09 14:32:17 +02:00
Maschell
d3629321e1 Update sCheckDataRange to support 0x00800000 - 0x010000000 memory region 2022-10-03 21:42:51 +02:00
Maschell
b66266af54 Patch LiValidateAddress to support OSDynLoad_SetAllocator with our region 2022-10-03 21:42:51 +02:00
Maschell
2e63108b5f format code 2022-05-09 19:34:19 +02:00
Maschell
7bb906f83f Improve logging and resolve any compiler warnings 2022-05-09 19:34:19 +02:00
Maschell
59300aad22 Use latest version of libfunctionpatcher 2022-05-09 19:34:19 +02:00
Maschell
93fb8f7d84 Implement generic SR patching and generic sCheckDataRange replacement 2022-04-29 10:04:24 +02:00
Maschell
9a6b924aeb Fix negative alignments 2022-02-13 13:41:39 +01:00
Maschell
8203e92a2b Implement support for MEMFindContainHeap when using mapped memory 2022-02-13 13:41:39 +01:00
Maschell
79787e7dce The allocated size is now always an integral multiple of alignment. 2022-02-13 13:41:39 +01:00
Maschell
f513e1a374 Round up the size of the allocated memory to avoid heap corruption 2022-02-11 20:38:46 +01:00
Maschell
cd56a105e3 Add memory barrier to ensure memory coherence 2022-02-11 20:38:46 +01:00
Maschell
9e424205e0 Guard heap access with OSMutex 2022-02-11 20:38:46 +01:00
Maschell
f56e6938be Nop out additional branches to app panics 2022-02-11 20:33:27 +01:00
Maschell
cd18ab16a6 Update .clang-format to update the comment, macro and assignment formatting 2022-02-03 15:51:47 +01:00
Maschell
6db316c682 Use clang-format to format the code 2022-02-02 18:34:27 +01:00
Maschell
5033473292 Formatting 2022-01-26 13:25:28 +01:00
Maschell
fcba5a9f1c Implement logging, but only when built with make DEBUG=1 2022-01-26 13:24:56 +01:00
Maschell
833a37e0cf WUMS 0.3.1 support 2022-01-26 13:21:07 +01:00
Maschell
88f4e0af29 Reduce the filesize by avoid "new" and any exceptions 2022-01-21 19:52:35 +01:00
Maschell
21e39fb642 Trust in CafeOS to figure it out 2021-12-15 17:01:36 +01:00
Maschell
44676078ee Do not flush heap header to gain performance 2021-12-07 20:44:00 +01:00
Maschell
d890a6c91e Init Spinlock 2021-12-07 20:43:48 +01:00
Maschell
e11cf31b05 Revert "Replace the Spinlock with a Mutex, flush the heap header"
This reverts commit 60d000a277.
2021-12-03 11:44:53 +01:00
Maschell
c608b60a1b Patch KiGetOrPutUserData to allows usage of our mapped memory inside kernel 2021-11-06 17:06:31 +01:00
Maschell
60d000a277 Replace the Spinlock with a Mutex, flush the heap header 2021-10-20 23:52:09 +02:00
Maschell
2b68e73d9c Remove logging - this fixes booting minecraft for some reason. 2021-10-20 23:51:47 +02:00
Maschell
d36d3610ca Use a global spinlock to lock the alloc/free functions 2021-09-28 17:58:20 +02:00
Maschell
d0e432fb69 Formatting and cleanup 2021-09-24 16:51:11 +02:00
Maschell
18a2889a36 Reenable logging, Update Dockerfile to use WUMS 0.2 2021-09-17 18:19:32 +02:00
Maschell
3c22ea9404 Use latest wut, remove logging for now 2021-04-17 12:27:01 +02:00